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


Click here to return to the 'Use Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Applescript
Authored by: webbix on Nov 01, '03 12:17:17PM
What happens if the share is not available? I login through a LAN IP at work but from home a from my gateway IP to the server behind the router. I have never used this method but have (and still do ) use an applescript to automate the connect and login. I keep the scripts in a folder I drag to the Dock and can launch as easily as any app. I also have a script to log me into the company file server as the 'owner' to allow doing admin easily. For security I compile the script as run only. I can not vouch for the possibility cracking this but someone would have to have access to the applet to do it anyway. The only thing I would like to add is to dismiss the login message window. Should be easy but I don't know the commands to do that. Dismiss with 'okay' but I can not target the window so I have not made any progress there with timeout of 180 seconds tell application "Finder" try --replace [] and contents as noted mount volume "afp://[server IP or NS name]/[share name]" as user name ¬ "[include the user name]" with password "[include password]" end try end tell end timeout

[ Reply to This | # ]