Mailing Lists: Apple Mailing Lists

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

Re: downloading a file into a folder



At 20:30 +0100 14/02/2005, Emmanuel wrote:
At 11:16 AM -0800 2/14/05, Ed Rush wrote:
do shell script ("curl " & this_URL & " -o " & POSIX path of (((path to desktop) as string) & "PuzzlesToDo:" & myFileName))

I get this error:

If your folder's name is really "PuzzlesToDo", then I don't know.

Otherwise, I would trying adding "quoted form of " before "POSIX path".

Emmanuel


just tried it out;   IT WORKS !  with the add-on from Emmanuel

actually this is a kind of script that I have been looking for for years !

and now i just appears !

i have a question:

do shell script ("curl " & this_URL & " -o " & POSIX path of (((path to desktop) as string) & "PuzzlesToDo:" & myFileName))

the" do shell script" and curl and this_url and even -o I kinda understand

and also the reasoning behind the POISX and path stuff

but

where is the syntax for what in reality is:

do shell script ( "name of instruction" & theUrl & where_to_put_file & path_to_desktop & folder_on_desktop & fileName )

is the order of the parts between the & &'s  purely logical ?

first instruction
then the url that the instruction shall get
then where to put what is 'gotten'
then the path
then the folder and
last the file

what if logic is not that simple  :-)))



--
Christian Vinaa

email@hidden

...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
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
References: 
 >downloading a file into a folder (From: Ed Rush <email@hidden>)
 >Re: downloading a file into a folder (From: Emmanuel <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.