• 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 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.

  • Follow-Ups:
    • Re: Delete FTP file (What about uploading?)
      • From: Doug McNutt <email@hidden>
    • Re: Delete FTP file (What about uploading?)
      • From: Deivy Petrescu <email@hidden>
    • Re: Delete FTP file (What about uploading?)
      • From: Joseph Weaks <email@hidden>
References: 
 >Re: Delete FTP file (What about uploading?) (From: EBI Aktivitet <email@hidden>)

  • Prev by Date: Re: Name Conflicts
  • Next by Date: Re: Resurgence in AppleScript interest
  • Previous by thread: Re: Delete FTP file (What about uploading?)
  • Next by thread: Re: Delete FTP file (What about uploading?)
  • Index(es):
    • Date
    • Thread