Re: Applescript and FTP
Re: Applescript and FTP
- Subject: Re: Applescript and FTP
- From: SemiColon <email@hidden>
- Date: Thu, 4 Jan 2001 10:27:32 -0800
At 9:49 AM -0800 1/4/01, Robert Seckendorf wrote:
>
Could someone please tell me if there is a Scripting Addition that supports
>
ftp transfers. I need to write an agent that will FTP a file to a remote
>
unix (Linix) server.
One way would be to use URL Access Scripting, found in OS 8.6 up.
This script is used as a folder action script.
on adding folder items to thisFolder after receiving filesToUpload
repeat with thisFile in filesToUpload
with timeout of 3600 seconds
tell application "URL Access Scripting"
upload thisFile to ,
"
ftp://username:email@hidden//dir/dir/etc/" replacing yes with progress without binhexing
end tell
end timeout
end repeat
tell application "URL Access Scripting" to quit
set stayOpen to display dialog "Close PPP?" buttons {"Keep Open", "Close"} default button 2 giving up after 50
if button returned of stayOpen is in {"", "Close"} then RA disconnect
end adding folder items to
;