Create samba shortcut from command line

Posted by neurolysis on Super User See other posts from Super User or by neurolysis
Published on 2011-07-01T08:07:19Z Indexed on 2011/07/01 8:24 UTC
Read the original article Hit count: 247

I'm currently wanting to deploy a setup to around 300 Macs. I have most of it scripted, but I'm having trouble creating a working alias to a samba share from the command line. I tried copying it from one Mac to another, but it loses its status as an alias, and instead OSX opens it in TextEdit. From a hexdump, it also looks like it has machine-specific information.

So, say I wanted to create an alias to 'smb://server/share' on the desktop from the command line, how would I do that? I have also tried a tell in AppleScript, but it complained about the syntax (specifically, too many slashes, seemingly taking about smb://).

Thanks.

© Super User or respective owner

Related posts about command-line

Related posts about osx-snow-leopard