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 15:30:06 -0500
The password problem is solved. These two work interchangeably in Terminal:
curl -T test.html
ftp://stuwww.tcu.edu/wwwpub/ -u UsrName:PassWd
curl -T test.html
ftp://UsrName:email@hidden/wwwpub/
But when I try specifying a file with a path that includes folders, such as
curl -T /Users/his/test.html
ftp://UsrName:email@hidden/wwwpub/
I get the error:
curl: (9) Couldn't change to directory wwwpub//Users/his
This /folder/file name is the format that's used in a droplet, of course.
Here is the droplet I'm using:
on open aliasList
set theURL to "
ftp://UsrName:email@hidden/wwwpub/"
repeat with eachFile in aliasList
set posixFile to POSIX path of eachFile
do shell script "curl " & the quoted form of theURL & " -T " & the
quoted form of posixFile
end repeat
end open
I understand what it's trying to do, to match the file path remotely, but
I can't find an option to override that. If there was a - option that
allows to specify a different name, I could add a line:
tell application "Finder" to set fileName to the name of eachFile
Suggestions?
Finally, no matter what I do, the output includes this paragraph, which I
haven't a clue what it means:
*** malloc[431]: Deallocation of a pointer not malloced: 0x30650; This
could be a double free(), or free() called with the middle of an allocated
block; Try setting environment variable MallocHelp to see tools to help
debug
Thanks for any help,
Joe Weaks
_______________________________________________
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.