Author Topic: Applescript, yummyftp and simultaneous transfers.  (Read 9331 times)

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Applescript, yummyftp and simultaneous transfers.
« on: January 03, 2007, 02:38:03 PM »
I've had no issues setting up yummyftp tasks via applescript and it works well, however I'm a bit lost on this one.

So, any ideas? Applescripting yummyftp to download just like pressing the 'transfer' button...
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #1 on: January 03, 2007, 03:55:49 PM »
I'm not sure what you're trying to do here, so forgive me if I've misunderstood.

Do you want to download all the server files?
You can use "*" to represent all files and folders when specifying an item to transfer.

If you want to manipulate the user interface, I'm afraid there is no facility for that.

If I haven't answered your question, please tell me more about what you're trying to do.

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #2 on: January 03, 2007, 03:59:28 PM »
Let me explain...

Currently, if I use yummyftp manually, I can select 10 files on the server and press 'transfer'. I have set yummyftp up so that 3 simultaneous connections are allowed, so I now have the files coming down in 3 queues. When using applescript however, I can only get the files to queue one by one.

If i did not explain clearly enough, please let me know ;)

* xyzulu is not easily offended
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #3 on: January 03, 2007, 05:37:24 PM »
Ah, crystal clear now. Thank you :) I'm sorry, but Applescript-driven transfers are not currently split across separate connections. I'll look into improving this for a future release - thanks for pointing this out!

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #4 on: January 03, 2007, 11:31:24 PM »
I'm going to test out some *other* ftp software and this particular feature in the meantime.. thanks for looking into it for a future version though.
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #5 on: January 04, 2007, 01:52:03 AM »
As far as I am aware, no other Mac FTP software provides the multiple simultaneous transfers you're looking for, let alone by AppleScript, but I take your point - I'm looking into it right now :)

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #6 on: January 04, 2007, 01:56:55 AM »
Keep up the good work on the best ftp app for Mac! :)
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #7 on: January 04, 2007, 04:12:27 PM »
Actually, I take that back  :D Split transfers via AppleScript was supported since version 1.5.0.

The confusion here is that you're talking about issuing several AppleScript commands in a row, without waiting for the result of them, so that you get several files transferring at once. The problem is that Yummy will only return a result from each AppleScript command once the action has been completed - in this case, the transfer completes or errors. Each AppleScript command is executed sequentially. This is why you get one file transferred at a time.

My definition of split transfers is where you transfer a selection of files and they get spread across multiple connections. If you can change your AppleScript to say

download "*"

rather than

download "file1"
download "file2"
download "file3"

then all the server files will be transferred in one go and then multiple connections will be used.

If there are items you would like not to be transferred, you could set up filters (Listing menu -> Filters) to include only your files, or exclude all others.

I hope this helps

-Jason

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #8 on: January 04, 2007, 04:16:55 PM »
Interesting.. let me play..
I'm only wanting to grab specific file though...

But I get your drift.. if it was possible to call multiple files at once via applescript, yummyftp would handle it ok.
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #9 on: January 04, 2007, 04:21:44 PM »
mm that would be a huge deal to setup in my case. What about being able to call 2 or more files on one applescript line..

ie download "blah.tar.gz" and "yada.tar.gz"

Any ideas there?
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #10 on: January 04, 2007, 04:37:00 PM »
That's a shame. How many specific files do you need to select? Or is the name selection different each time?

Anyway, I can look into adding an "and" option to make life easier :)

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #11 on: January 04, 2007, 04:42:53 PM »
"and" would be good..

I have about 200 files to select across various servers.. it can be done, but it would take me a while to add each on to a filter.
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #12 on: January 04, 2007, 05:02:29 PM »
eeek.. filters are limited to 11 items.

Oh well, I tried.  :P
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #13 on: January 04, 2007, 05:18:31 PM »
Yes, it's a silly limitation that I'll lift at some point. I'd always intended wildcard type usage rather than specific item names.

I'll work on "and"  :)

xyzulu

  • Jr. Member
  • **
  • Posts: 12
Re: Applescript, yummyftp and simultaneous transfers.
« Reply #14 on: January 04, 2007, 05:20:56 PM »
Sweet.. yell if you need someone to test.

Oh, and BTW, get this board upgraded to SMF 1.1.1 ;)
Brad Baker - Joomla! Core Team
www.joomla.org - Joomla!
www.rochen.com - Managed Dedicated, Reseller & Multiple Domain Hosting.
www.joomlatutorials.com - Learn Joomla! the easy way.