Need help with Transmit syntax

Does anyone have a working Transmit script that connects and synchronizes? I can’t get Transmit to connect via AppleScript. [OS X 10.2.3 and Transmit 2.2].

The connect section of the dictionary looks like this and I can’t figure out what it wants as a reference for the connect command.

connect: Connect to a specified server.
	connect reference  -- the object for the command
 		[as user Unicode text] -- The user name to use when connecting.
 		[using port Unicode text] -- The network port to use when connecting.
 		[with initial path Unicode text] -- The initial path to change to after connection is made.
 		[with password Unicode text] -- The password to use when connecting.
 		[with connection type SFTP/FTP] -- The connection type to use when connecting.
 		to Unicode text -- The server address to connect to.
	Result: boolean  -- the reply for the command

Thanks for any help you might offer.

tell application "Transmit"
	connect document 1 to "[url=ftp://ftp.server.com]ftp.server.com[/url]" as user "rockybalboa" with password "heyhey"
end tell

‘reference’ uses to be ‘document 1’…

That’s it! I don’t quite understand why it’s referring to a document but as long as it works, I don’t care. Thanks JJ! :slight_smile: