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


Click here to return to the 'A bit more of the script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A bit more of the script
Authored by: fronesis on Mar 23, '06 04:33:44PM

OK, thanks for the start. Here's what I've got to add to it.

SSH Tunnel Manger will automatically make a connection upon launch, and Chronosync can be scheduled to sync on launch. So we can do 1 and 3 fairly easily.

The one problem I've got: how to submit the password for Tunnel Manger within the applescript???

I've worked around this by writing in a delay, which gives me this:


try

tell application "SSH Tunnel Manager" to launch
delay 30

set the disk_URL to "afp://" & "username" & ":" & "password" & "@127.0.0.1:10548/" & "hard disc name"
mount volume disk_URL

tell application "ChronoSync" to launch


on error error_msg
display dialog error_msg buttons {"OK"} default button 1


end try

So, does anyone know how (or if it's possible) to put input the password through the script? With that, the whole thing would be automated.



[ Reply to This | # ]