Yummy Software
Welcome, Guest. Please login or register.
October 19, 2009, 07:25:03 PM
3719 Posts in 728 Topics by 807 Members
Latest Member: vanik
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Yummy FTP Talk  |  upload Using AppleScript « previous next »
Pages: [1] Print
Author Topic: upload Using AppleScript  (Read 491 times)
melastudio
Newbie
*
Posts: 12


View Profile WWW
upload Using AppleScript
« on: July 15, 2009, 05:05:00 AM »

I've tried to use AS for upload automaticaly some files.
I have alwais the file in a folder a always they must be uploaded in same foder in the same server, all the times....

I've recorded the actions with the Script Editor but when I compile and tun the script it does nothing...
HYummy opens but no more actions are executed returning error 1 (named connection not found)

It should be something simple as this...

tell application "Yummy FTP"
   activate
   connect "Lomax"
   using connection "Lomax" list local folder "/Users/macbook/Desktop/max/JPEG"
   using connection "Lomax" list remote folder "/monica"
   using connection "Lomax" upload "*"
end tell

I've a bookmark named "Lomax"
Logged

Certified FileMaker Pro 9Developer
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: upload Using AppleScript
« Reply #1 on: July 15, 2009, 06:23:13 AM »

I am very sorry. This is caused by a bug in the 1.7.3 beta and is already fixed in a newer build which I will release shortly.

In the meantime, change the name of the Bookmark in the script to Lomax.bkmk and all should be well.

Going forward, both Lomax and Lomax.bkmk will work in the new build.

-Jason
Logged
melastudio
Newbie
*
Posts: 12


View Profile WWW
Re: upload Using AppleScript
« Reply #2 on: July 15, 2009, 08:27:53 AM »

Ok!
It still does not change the directory (no remote, no local)
I can download a previous non beta version to avoid this?
Many thanks
Logged

Certified FileMaker Pro 9Developer
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: upload Using AppleScript
« Reply #3 on: July 15, 2009, 08:40:27 AM »

Sorry, I just double checked : only the 'connect' command requires the .bkmk but the other commands do not.

Just to be clear the connect command requires Lomax.bkmk and all the others require just Lomax

If you still have issues you could revert to the 1.7.2 release version, just download it from the Yummy Software site, however since you have used the newer beta then all your Bookmark files will have .bkmk extensions. Although they are 'invisible' they will be there and since v1.7.2 knows nothing about the extension this means you'll still have to alter your script.

For 1.7.2 you might need to make all the commands use Lomax.bkmk
Logged
melastudio
Newbie
*
Posts: 12


View Profile WWW
Re: upload Using AppleScript
« Reply #4 on: July 15, 2009, 08:47:38 AM »

I've done!!
1.7.2, disabled version checking of beta release

tell application "Yummy FTP"
   activate
   connect "Lomax.bkmk"
   using connection "Lomax.bkmk" list local folder "/Users/macbook/Desktop/max/JPEG"
   using connection "Lomax.bkmk" list remote folder "/monica"
   with timeout of 32766 seconds
      using connection "Lomax.bkmk" upload "*"
   end timeout
   
   using connection "Lomax.bkmk" list local folder "/Users/macbook/Desktop/max/TIFF"
   using connection "Lomax.bkmk" list remote folder "/lomax"
   with timeout of 32766 seconds
      using connection "Lomax.bkmk" upload "*"
   end timeout
end tell

I opened another little post for another little question...
Many thanks
Logged

Certified FileMaker Pro 9Developer
JD
Administrator
FTP Guru
*****
Posts: 1655


View Profile Email
Re: upload Using AppleScript
« Reply #5 on: July 15, 2009, 08:53:11 AM »

Good Smiley

Although I would recommend using the newer build if possible.
Logged
Pages: [1] Print 
« previous next »
Jump to: