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


Click here to return to the 'Connect to servers with Applescript using Keychain' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Connect to servers with Applescript using Keychain
Authored by: regulus on May 09, '06 05:58:02PM

A short script which first checks if a disk is already mounted, and then if it's not mounted will mount it.

tell application "Finder"
if not (exists disk "ShareVolume") then open location "afp://username@ipaddress/ShareVolume"
end tell

I inserted the ShareVolume mount check to eliminate any problems if a disk is already mounted. I use the script to open several volumes at once (with several if not... statements) and many times I already have one or more ShareVolume's mounted when I run the script.



[ Reply to This | # ]