|
Pages: [1]
|
 |
|
|
Author
|
Topic: Applescript - Add to queue (Read 289 times)
|
colonel_sanders
Newbie

Posts: 10
|
Hello again,
Is there an applescript function to add a file to an existing download queue of a bookmark? We work on a server with 16000 + files with the same naming convention. I have made an application that downloads a file specified by the user via yummy, but if there is a queue, the script can't pass the file name to Yummy without opening a new connection.
Thanks, C_S
|
|
|
|
|
Logged
|
|
|
|
|
JD
|
No, there's no such capability. AppleScript support works such that once you start an action then no other actions can be initiated until the current one is completed. You will get a 'connection busy' result if you try.
You can open multiple connections, but then you lose the ability to track the result of the transfer - success or failure.
Or you can wait in a loop until the 'connection busy' result clears.
|
|
|
|
|
Logged
|
|
|
|
colonel_sanders
Newbie

Posts: 10
|
Hi JD,
Thanks for the information. I put a timeout in the script and let it monitor the 'connection busy' result.
I have another applescript question. I'm trying to pass a list of items to Yummy to download. What format does the list need to be in?
At the moment, once the script has been activated, the list (listVariable) looks like this {"ABC112927", "ABC096944", "ABC103640", "ABC096946", "ABC096947", "ABC096949", ""}. When I pass it to yummy it downloads the first item listed alphabetically on the server, only. If I only pass one file name to Yummy it works fine.
Any help is appreciated. Very frustrating. Thanks!
|
|
|
|
« Last Edit: June 19, 2011, 02:32:39 PM by colonel_sanders »
|
Logged
|
|
|
|
colonel_sanders
Newbie

Posts: 10
|
Even a simple script like this returns the same result (downloads first file on server listed in alphabetical order):
tell application "Yummy FTP" using connection "Connection" download {"ABC112927", "ABC096944"} to destination "Volumes/Source" end tell
This works fine:
tell application "Yummy FTP" using connection "Connection" download {"ABC112927"} to destination "Volumes/Source" end tell
|
|
|
|
« Last Edit: June 16, 2011, 04:35:36 AM by colonel_sanders »
|
Logged
|
|
|
|
colonel_sanders
Newbie

Posts: 10
|
I think I found the problem...
This works: tell application "Yummy FTP" using connection "Connection" download thelist end tell
This doesn't: tell application "Yummy FTP" using connection "Connection" download thelist to destination "/Volumes/Source/" end tell Any ideas what I am doing wrong?
Thanks! C_S
|
|
|
|
« Last Edit: June 16, 2011, 10:31:47 AM by colonel_sanders »
|
Logged
|
|
|
|
|
JD
|
I'll investigate and get back to you asap
|
|
|
|
|
Logged
|
|
|
|
|
JD
|
I'm sorry, it's a bug!  The only work around at the moment is to issue a download command per item in the list. So you could set up a loop I guess, accessing each item in the list and issuing a download command for it.
|
|
|
|
|
Logged
|
|
|
|
|
JD
|
Fixed in the next update 
|
|
|
|
|
Logged
|
|
|
|
colonel_sanders
Newbie

Posts: 10
|
Ha! Thanks JD  . Any idea when the next update is coming??
|
|
|
|
|
Logged
|
|
|
|
|
JD
|
I'll send you a beta build asap, but that's likely to be towards the end of today to be honest. Is that ok?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
JD
|
You're welcome  I've sent you the download link via email
|
|
|
|
|
Logged
|
|
|
|
|
|
|
JD
|
Thanks to you for finding & reporting the bug! Great to hear its all fixed up now 
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
|