Yummy Software
Welcome, Guest. Please login or register.
April 30, 2009, 11:42:24 AM
3403 Posts in 656 Topics by 727 Members
Latest Member: frdr
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Problems & Bugs  |  Problem with deleting of remote files in applescript « previous next »
Pages: [1] Print
Author Topic: Problem with deleting of remote files in applescript  (Read 160 times)
Radek
Newbie
*
Posts: 1


View Profile
Problem with deleting of remote files in applescript
« on: March 29, 2009, 04:23:07 PM »

Hi,
  I am trying to make to work this applescript for upload, but on line with 'delete remote item' I always get result 3 and I can't figure it out where is error. Everything else seems to work ok.


         Radek


tell application "Yummy FTP"
   activate
   connect "site.com"
   
   using connection "site.com" list remote folder "/public_html/sacred/albums/import/"
   using connection "site.com" list local folder "/Users/amiya/Documents/Export/"
   with timeout of 32766 seconds
      using connection "site.com" delete remote item "*"
   end timeout
   with timeout of 32766 seconds
      using connection "site.com" upload "*"
   end timeout
   
   disconnect "site.com"
end tell
Logged
JD
Administrator
FTP Guru
*****
Posts: 1507


View Profile Email
Re: Problem with deleting of remote files in applescript
« Reply #1 on: March 29, 2009, 06:38:08 PM »

It's a bug, and it is now fixed in the latest build. Thanks for reporting it!

For what it's worth, the deletion does take place, but the result was returned incorrectly.
Logged
JD
Administrator
FTP Guru
*****
Posts: 1507


View Profile Email
Re: Problem with deleting of remote files in applescript
« Reply #2 on: March 30, 2009, 01:23:29 PM »

Radek, I was just re-reading your post and realized that what you've written is already a built-in feature of the Synchronize capability of Yummy FTP. If you set up a Server Update with the 'Delete orphans' option enabled I think it will re-produce what you need, as well as having the benefit of being able to use the Schedule option if you need it to be executed on a regular basis automatically.
Logged
Pages: [1] Print 
« previous next »
Jump to: