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


Click here to return to the 'Open several apps and docs with a double-click' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open several apps and docs with a double-click
Authored by: fresler on May 18, '04 11:24:25AM

I'm not sure about how to test to see if a Network drive is already mounted. I've included my ApplesScript below. The first line is where I test to see if I'm on the network at work. The IP address is one of our servers. So, if i get a response from the ping, I know I'm on the network.

set zippy to do shell script "ping -c 1 192.168.1.93"
if zippy contains "1 packets received" then

tell application "Finder"
try
mount volume "smb://192.168.1.93/root"
mount volume "smb://192.168.1.25/evalnow"
mount volume "smb://192.168.1.181/notes"
end try
end tell

tell application "Mail"
activate
end tell

tell application "Netscape"
activate
end tell

tell application "Safari"
activate
end tell

tell application "iChat"
activate
end tell

tell application "BBEdit"
activate
end tell

end if



[ Reply to This | # ]