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 (still)



A week ago, I asked about downloading a file to a specific folder.

On 14 Feb 2005, at 11:30 AM, Emmanuel wrote:
..., I would trying adding "quoted form of " before "POSIX path".

On 14 Feb 2005, at 11:37 AM, Rob Stott wrote:
Probably the colon on the end of your folder name - a POSIX path uses slashes, not colons.

I am now rid of the curl error, but I still can't get the file into the folder.


On 16 Feb 2005, at 10:38 AM, Adam K. Wuellner wrote:
Put the path construction in parentheses?

Alas, that makes no difference. With or without the parentheses, I get a file on the desktop named
Puzzles To Do/2005-02-21-LATimes.puz
I thought it was impossible to have a slash in the file name, but there it is.


Here's my current code:

set this_URL to "http://www.latimes.com/cgi-bin/litsoft/litsoft.pl/today.puz";
set destFolder to "Puzzles To Do/"
set myFileName to thisYear & "-" & thisMonthNumber & "-" & thisDay & "-LATimes.puz"
do shell script ("curl " & this_URL & " -o " & POSIX path of (((path to desktop) as string) & quoted form of destFolder & myFileName))


-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*—
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
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.