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


Click here to return to the '10.4: One way to automount SMB network shares' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: One way to automount SMB network shares
Authored by: markflo on Feb 09, '07 07:44:02AM

All you gotta do for a graceful exit on failure (due to the shares not being available) is add a "try" statement to the script, like this:

try
mount volume "smb://user:pass@smbserver.lan/share"
end try

Simple.

(you might need to wrap that in a 'tell application "Finder"' statement, though)



[ Reply to This | # ]