• 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
downloading a file into a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

downloading a file into a folder


  • Subject: downloading a file into a folder
  • From: Ed Rush <email@hidden>
  • Date: Sat, 12 Feb 2005 23:45:04 -0800

I'm having trouble downloading a file into a specified folder.

<x-tad-smaller> do shell script</x-tad-smaller><x-tad-smaller> ("curl " & </x-tad-smaller><x-tad-smaller>this_URL</x-tad-smaller><x-tad-smaller> & " -o " & </x-tad-smaller><x-tad-smaller>POSIX path</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>of</x-tad-smaller><x-tad-smaller> (((</x-tad-smaller><x-tad-smaller>path to</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>desktop</x-tad-smaller><x-tad-smaller>) </x-tad-smaller><x-tad-smaller>as</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>string</x-tad-smaller><x-tad-smaller>) & </x-tad-smaller><x-tad-smaller>myFileName</x-tad-smaller><x-tad-smaller>))
</x-tad-smaller><x-tad-smaller>
</x-tad-smaller>
downloads the file to the Desktop, just fine. When I add the folder (which is on the Desktop), this test:

<x-tad-smaller> display dialog</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>POSIX path</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>of</x-tad-smaller><x-tad-smaller> (((</x-tad-smaller><x-tad-smaller>path to</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>desktop</x-tad-smaller><x-tad-smaller>) </x-tad-smaller><x-tad-smaller>as</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>string</x-tad-smaller><x-tad-smaller>) & "PuzzlesToDo:" & </x-tad-smaller><x-tad-smaller>myFileName</x-tad-smaller><x-tad-smaller>)
</x-tad-smaller>

shows the correct path, with slashes. However, when I put the folder into the shell command, like this:
<x-tad-smaller>
</x-tad-smaller><x-tad-smaller> do shell script</x-tad-smaller>
<x-tad-smaller> ("curl " & </x-tad-smaller><x-tad-smaller>this_URL</x-tad-smaller><x-tad-smaller> & " -o " & </x-tad-smaller><x-tad-smaller>POSIX path</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>of</x-tad-smaller><x-tad-smaller> (((</x-tad-smaller><x-tad-smaller>path to</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>desktop</x-tad-smaller><x-tad-smaller>) </x-tad-smaller><x-tad-smaller>as</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>string</x-tad-smaller><x-tad-smaller>) & "PuzzlesToDo:" & </x-tad-smaller><x-tad-smaller>myFileName</x-tad-smaller><x-tad-smaller>))
</x-tad-smaller>

I get this error:

Attachment: curl error.jpg
Description: application/applefile

JPEG image



Can someone here tell me how to fix this? TIA.

-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*—
Ed Rush
Los Osos, California
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: downloading a file into a folder
      • From: "Adam K. Wuellner" <email@hidden>
  • Prev by Date: [ann] Appscript Installer 1.0
  • Next by Date: Re: downloading a file into a folder
  • Previous by thread: Re: downloading a file into a folder
  • Next by thread: Re: downloading a file into a folder
  • Index(es):
    • Date
    • Thread