4
1
I'm currently wanting to deploy a setup to around 300 Macs. I have all of it scripted and ready to deploy, excepting that I'm having trouble creating a working alias to a samba share from the command line. I tried creating an alias, and then copying it from one Mac to another, but it loses its status as an alias, and instead OSX opens it in TextEdit (the @ in ls -l is also missing). Even if this did work, from a hexdump, it also looks like the alias has machine-specific information that may not work on another Mac.
Say that I wanted to create an alias to 'smb://server/share' on the desktop from the command line, how would I do that?
The machines run Mac OS 10.6.
Thanks.
"I tried copying it from one Mac to another, but it loses its status as an alias" -- have you made sure tocopy extended attributes as well as OS X metadata (esp. resource forks)? You could try to zip it up and unzip it on the other machine to preserve those – Daniel Beck – 2011-07-01T08:10:44.287
Yeah, it loses the attributes. If I try to keep the attributes when copying it says something to the effect of
chflags: Unauthorized
. – Matthieu Cartier – 2011-07-01T08:32:34.343I should mention, it says that even if I copy the file as the superuser. – Matthieu Cartier – 2011-07-15T11:52:23.603