Uploading Files Using AppleScript Commands

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.

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.

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.

Sample Apple Scripts

launch application "CuteFTP"

tell application "CuteFTP"

   browse server "user:password@hostname"change folder "~/aFolder"

end tell

launch application "CuteFTP"

tell application "CuteFTP"

   upload elements {"/TestFile.txt"} using addressbook session "Remote server"

end tell