Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Automount SAMBA (Windows) share points at boot' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automount SAMBA (Windows) share points at boot
Authored by: ClarkGoble on Jun 14, '05 02:22:00PM

Just a note to the above. If you have servers going up and down and a single script to connect to them all, you probably have had the joy of Applescript returning an error when you try to mount a server that is already mounted. Applescript then abandons the rest of your code so no other servers get mounted.

There is an easy way to fix this. Just surround each "mount volume..." command with a try and then end try. You have to do it for each line, otherwise if there is an error it will still skip the rest of your mounting. So you might have something like this.

tell application "Finder"
activate

try
mount volume "smb://WORKGROUP..."
end try

try
mount volume "smb://WORKGROUP..."
end try
end tell


[ Reply to This | # ]