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

Question:

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 Solved
Answer:
Answer:
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

Posted on Feb 10, 2011 5:10 PM

Question marked as Solved

Feb 10, 2011 5:10 PM in response to highmeadow In response to highmeadow

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

Feb 10, 2011 5:10 PM

Reply Helpful
User profile for user: highmeadow

Question: Applescritpt/Transmit Question