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