Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Applescritpt/Transmit Question

Applescript/Transmit question. I have a great Applecript that tells the OS X application "Transmit" to sync two particular volumes. But I'd like to add some kind of tag that specifies the sync to be "upload only" and "mirror" (meaning delete orphaned destination files). Where do those tags go in my Applescript, and what exactly is the syntax? Here is my Applescript as it currently stands:

tell application "Transmit"
set myFave to item 1 of (favorites whose name is "iTouch")
set myRules to (skip rules whose name is "New Rule") -- must be a set, not an individual item
connect to myFave
change location of local browser to path "~/Documents/iTouch Files"
change location of remote browser to path "/"
synchronize local browser to remote browser using skip rules myRules
close remote browser
end tell
end tell

MacBook, Mac OS X (10.6.6), Core 2 Duo

Posted on Feb 9, 2011 1:54 PM

Reply
Question marked as Best reply

Posted on Feb 10, 2011 5:10 PM

what about

<pre> with delete orphaned items</pre>

at the end of your synchronize command ?

Using Transmit version 4 the code would probably should look like this:

tell application "Transmit"

set myFave to item 1 of (favorites whose name is "iTouch")

set myRules to (skip rules whose name is "New Rule") -- must be a set, not an individual item

tell document 1

tell current tab

connect to myFave

change location of local browser to path "~/Documents/iTouch Files"

change location of remote browser to path "/"

synchronize local browser to remote browser using skip rules myRules with delete orphaned items

close remote browser

end tell

end tell

end tell

2 replies

There are no replies.

Applescritpt/Transmit Question

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.