• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript and FTP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

;


References: 
 >Applescript and FTP (From: "Robert Seckendorf" <email@hidden>)

  • Prev by Date: Re: srvr
  • Next by Date: Re: applescript-users digest, Vol 2 #187 - 15 msgs
  • Previous by thread: Re: Applescript and FTP
  • Next by thread: Re: Applescript and FTP
  • Index(es):
    • Date
    • Thread