CuteFTP Mac Pro supports the browse and upload AppleScript commands. For more information about AppleScript, refer to the AppleScript forums and the MacOS X Reference Library.
browse
This command opens the main window, connects to the specified server and lists its directory content.
browse [reference]
List of references:
change folder “Unicode text” -- The argument specifies the remote folder on the server.
server “Unicode text” -- The argument specifies the host name (URL based format).
using addressbook session “Unicode text” -- The argument specifies the Site Manager session name.
upload
This command uploads files/folders list onto server.
upload [reference]
List of references:
into folder “Unicode text” -- The argument specifies the remote folder on the server.
onto server “Unicode text” -- The argument specifies the host name (URL based format).
elements list -- The argument specifies the list of files/folders to be uploaded.
using addressbook session “Unicode text” -- The argument specifies the Site Manager session name.
browse
launch application "CuteFTP"
tell application "CuteFTP"
browse server "user:password@hostname"change folder "~/aFolder"
end tell
upload
launch application "CuteFTP"
tell application "CuteFTP"
upload elements {"/TestFile.txt"} using addressbook session "Remote server"
end tell