AppleScript Transmit File Sync

I host this website's media in a S3 bucket. Transmit handles FTP, SFTP, WebDAV but also cloud services such as S3, Google Drive, Dropbox, Microsoft Azure...

I use File Sync in Transmit 5 to sync a local folder on my Mac with a S3 bucket.

Synchronization is a quick, fully automated method of bringing a folder up to date with the contents of another folder.

The name of the Transmit's favorite is I wrote an AppleScript to trigger the sync:

tell application "Transmit"
    set myFave to item 1 of (favorites whose name is "")    
    tell document 1
        tell current tab
            connect to myFave
            synchronize local browser to remote browser
            close remote browser
        end tell
    end tell    
end tell

Tags: #automation #applescript #transmit