Your best friend for file transfer.

Applescript transfer complete determination (2 posts)
- Started 5 years ago by Jim Brandt
- Latest reply 5 years ago from Jim Matthews
-
Jim Brandt Member
-
Jim Matthews Administrator
Hi,
According to the dictionary, when you specify "with immediate return" the put into command returns a transfer object. You can test the "completed" property of that object to check whether the transfer is done.
I'm afraid the dictionary is incorrect in documenting the name property of transfer windows as read/write. It's read-only.
Thanks,
Jim Matthews
Fetch Softworks
- Page 1
Jim,
How do I determine in Applescript when a transfer is complete?
Here's what I'm attempting to do:
I'm trying to start multiple transfers to different locations so I can have more than one transfer at a time (I'm actually hoping to get up to 20 at a time going).
I log in to site 1 using either:
set TW to make new transfer window at beginning with properties {hostname:HostAddr, username:IDofUser, password:PassWrd, initial folder:InitFolder, authentication:SFTP, encrypt:true} for an SFTP
or
set TW to make new transfer window at beginning with properties {hostname:HostAddr, username:IDofUser, password:PassWrd, initial folder:InitFolder} for a regular FTP.
Once it's connected, I start the transfer with:
put into TW item FileList with immediate return
where FileList is a list of file aliases. This allows for single file or multiple file uploads.
Then I move on to the next site, reaining the TW variable associated with this transfer in a list.
So, there is a Transfer class that has a "Completed" property. How do I associate the Transfer class to the Transfer Window class (the TW I've saved) so I can test for the "completed" property being true?
Also, in the dictionary, Transfer Window has a property "name" that says the access is get/set. How do I assign a name to the window so that it shows that name instead of the URL of the site it's logged into?
I tried putting the name:WindowName property into the make new transfer window but it still shows the URL.
TIA
Jim Brandt
Posted 5 years ago #