Page 1 of 1

Applescript error on sync

Posted: Thu Jun 05, 2008 12:41 am
by buzzwig
Cyberduck got an error: NSInternalScriptError

Any help would be terrific!
I get that error when I run this code (actual logins protected for the safety of the innocent):

Code: Select all

set theServerAddress to "myftp.mydomain.com"
set theUserName to "myusername"
set thePassword to "mypassword"
set theRemoteFolder to "./folder name"
set theLocalFolder to ((path to desktop) & "folder name") -- the remote folder and the local folder have the same name
tell application "Cyberduck"
	activate
	set frontmost to true
	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 theServerAddress as user theUserName with password thePassword
			change folder to "folder name"
			tell theBrowser
				sync folder theServerAddress with local folder theLocalFolder -- this is where the error occurs
			end tell
		end tell
	end timeout
end tell