0

I'm trying to get a server into the "Favourite Servers" section.

Favourite Servers

The catch is: I want to do it with the terminal using "osascript" or "defaults write"

I searched for a bit and found this command:

osascript -e 'tell application "Finder" to make new server alias at end of server list with properties {name:"Public", URL:"smb://server/public"}'

(Adress is changed for post)

If I execute this line the Terminal responds with:

38:50: syntax error: A class name can't go after this identifier. (-2740)

Could anyone tell me why I'am constantly getting this error message and how to resolve it?

Thanks Wbr Only_a_Shadow

Trying: Add Server to "Favourite Servers" list

0 Answers0