• 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: Delete FTP file (What about uploading?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete FTP file (What about uploading?)


  • Subject: Re: Delete FTP file (What about uploading?)
  • From: Joseph Weaks <email@hidden>
  • Date: Thu, 12 Jun 2003 23:02:10 -0500

Solved. Here's the working run handler for the droplet:

-- on a file drop, it uploads silently to the server space
on open aliasList
repeat with eachFile in aliasList
set posixFile to POSIX path of eachFile
tell application "Finder" to set fileName to the name of eachFile
set theURL to "ftp://usrname:email@hidden/wwwpub/"; & fileName
do shell script "curl " & the quoted form of theURL & " -T " & the quoted form of posixFile
end repeat
end open


FYI, adding the filename to the upload address prevents the attempt to write the whole path. I'm tickled to death to have this thing.

Cheers,
Joe Weaks
Dallas, Tx
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Delete FTP file (What about uploading?) (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: GUI Scripting / Keystroke
  • Next by Date: Re: applescript-users digest, Vol 3 #1747 - 17 msgs
  • Previous by thread: Re: Delete FTP file (What about uploading?)
  • Next by thread: Re: Delete FTP file (What about uploading?)
  • Index(es):
    • Date
    • Thread