Yummy Software
Welcome, Guest. Please login or register.
January 30, 2008, 10:36:31 AM
2420 Posts in 448 Topics by 542 Members
Latest Member: Joris Vincken
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Yummy FTP Talk  |  yummy scripting question « previous next »
Pages: [1] Print
Author Topic: yummy scripting question  (Read 264 times)
dave_r
Newbie
*
Posts: 25


View Profile
yummy scripting question
« on: November 16, 2007, 01:48:28 PM »

Hi, I'd like to run the Update Mac and Update Server scripts on 3 folders that live in different places in the Library, all at the same time or consecutively.  I wouldn't be updating one without updating the others so rather than preparing 3 individual droplets is there a way to prepare one script that consecutively looks at the 3 folders?  Many thanks, Dave

tell application "Yummy FTP"
   activate
   connect "Bookmark"
   using connection "Bookmark" list remote folder "/Full/Path/To/Server/Folder/"
   using connection "Bookmark" list local folder "/Full/Path/To/Mac/Folder/"
   with timeout of 32766 seconds
      using connection "Bookmark" synchronize "Update Mac"
   end timeout
   disconnect "Bookmark"
end tell
Logged
JD
Administrator
FTP Guru
*****
Posts: 1071


View Profile Email
Re: yummy scripting question
« Reply #1 on: November 16, 2007, 03:43:34 PM »

You are restricted to performing one task at a time with the scripting in Yummy, so you would simply repeat the synchronization steps in the sample script, substituting the appropriate Bookmark, source/destination paths, and specify either Update Mac or Update Server

eg:

tell application "Yummy FTP"
   activate

   connect "Bookmark1"
   using connection "Bookmark1" list remote folder "/Full/Path/To/Server/Folder/1/"
   using connection "Bookmark1" list local folder "/Full/Path/To/Mac/Folder/1/"
   with timeout of 32766 seconds
      using connection "Bookmark1" synchronize "Update Mac"
   end timeout
   disconnect "Bookmark1"

   connect "Bookmark2"
   using connection "Bookmark2" list remote folder "/Full/Path/To/Server/Folder/2/"
   using connection "Bookmark" list local folder "/Full/Path/To/Mac/Folder/2/"
   with timeout of 32766 seconds
      using connection "Bookmark2" synchronize "Update Server"
   end timeout
   disconnect "Bookmark2"

   connect "Bookmark3"
   using connection "Bookmark3" list remote folder "/Full/Path/To/Server/Folder/3/"
   using connection "Bookmark3" list local folder "/Full/Path/To/Mac/Folder/3/"
   with timeout of 32766 seconds
      using connection "Bookmark3" synchronize "Update Mac"
   end timeout
   disconnect "Bookmark3"

end tell

Logged
dave_r
Newbie
*
Posts: 25


View Profile
Re: yummy scripting question
« Reply #2 on: November 16, 2007, 04:13:21 PM »

That's perfect, thanks JD.  Very logical but I'd have probably damaged something figuring it out for myself Smiley

Dave
Logged
Pages: [1] Print 
« previous next »
Jump to: