Re: Delete FTP file (What about uploading?)
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.