|
|
Use Applescript
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
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|