Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

downloading a file into a folder



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>
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:

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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.