scripting problems with sync and "verification" sc
Posted: Sun Dec 30, 2007 1:11 am
Hello,
I'm a bit "green" when it comes to Applescript and was hoping someone here could help me out. I've written a script that will sync external drives with FTP sites that seems to be successful ... with one hiccup ... How do I bypass the verification screen in Cyberduck that makes me click the "Continue" button before it completes the synching process? I am trying to make this an automatic process ... my next hurdle will be invoking the script based on a time of day. Below is my script.
tell application "Cyberduck"
set theServer to "someplace"
set theUser to "myname"
set thePassword to "mypassword"
set theProtocol to "ftp"
set theRemoteFolder1 to "/~/FTP/Private/"
set theLocalFolder1 to "/~/Documents/Personal"
set theRemoteFOlder2 to "/~/FTP/Public/"
set theLocalFolder2 to "/~/Documents/Work"
set theBrowser to (make new browser)
with timeout of 300 seconds
tell (theBrowser)
set the encoding to "UTF-8"
set show hidden to false
connect to theServer with protocol theProtocol with password thePassword as user theUser
sync folder theRemoteFolder1 with local folder theLocalFolder1
sync folder theRemoteFOlder2 with local folder theLocalFolder2
disconnect
end tell
end timeout
end tell
I'm a bit "green" when it comes to Applescript and was hoping someone here could help me out. I've written a script that will sync external drives with FTP sites that seems to be successful ... with one hiccup ... How do I bypass the verification screen in Cyberduck that makes me click the "Continue" button before it completes the synching process? I am trying to make this an automatic process ... my next hurdle will be invoking the script based on a time of day. Below is my script.
tell application "Cyberduck"
set theServer to "someplace"
set theUser to "myname"
set thePassword to "mypassword"
set theProtocol to "ftp"
set theRemoteFolder1 to "/~/FTP/Private/"
set theLocalFolder1 to "/~/Documents/Personal"
set theRemoteFOlder2 to "/~/FTP/Public/"
set theLocalFolder2 to "/~/Documents/Work"
set theBrowser to (make new browser)
with timeout of 300 seconds
tell (theBrowser)
set the encoding to "UTF-8"
set show hidden to false
connect to theServer with protocol theProtocol with password thePassword as user theUser
sync folder theRemoteFolder1 with local folder theLocalFolder1
sync folder theRemoteFOlder2 with local folder theLocalFolder2
disconnect
end tell
end timeout
end tell