Re: Scripting Fetch FTP simultaneous transfers
Re: Scripting Fetch FTP simultaneous transfers
- Subject: Re: Scripting Fetch FTP simultaneous transfers
- From: JollyRoger <email@hidden>
- Date: Fri, 26 Jan 2001 08:56:59 -0600
on 1/26/2001 7:31 AM, Mohamed Shams at email@hidden wrote:
>
I want to be able to start several FTP transfers that will take time
>
simultaneously (Large file transfers that would be on for a while)... When
>
you issue a 'PUT IN TRANSFER WINDOW' command, AppleScript waits for the
>
application's response to execute the rest, which is after the whole transfer
>
is done...
>
>
I tried using the 'IGNORING APPLICATION RESPONSES' block... but it did not
>
work for my purpose.. I'm getting errors as I need to put multiple files into
>
each window then move on to open another one and do the same, and so on....
Hmmm...AFAIK, Interarchy doesn't have that problem. With Interarchy, you
start a transfer with one single command:
fetch : fetch a file via ftp
fetch [ alias] -- File to fetch to
[host string] -- ftp server (defaults to this mac)
[path string] -- path to file
[user string] -- user name (defaults to 3anonymous2)
[password string] -- user password (defaults to your Email address)
[url string] -- fetch URL
[binary boolean] -- in binary mode (defaults to determined by
suffix)
[expand with type class] -- creator code of application to expand
with (defaults to none)
Result : small integer -- Error code
Storing is the same:
store : store a file to an ftp site
store alias -- file to store
[host string] -- ftp server (defaults to this mac)
[path string] -- path to file
[user string] -- user name (defaults to 3anonymous2)
[password string] -- user password (defaults to your Email address)
[url string] -- store URL
[binary boolean] -- in binary mode (defaults to determined by
suffix)
Result : small integer -- Error code
You can start as many transfers at the same time as needed by issuing
multiple fetch/store commands.