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

Re: downloading a file into a folder


  • Subject: Re: downloading a file into a folder
  • From: "Adam K. Wuellner" <email@hidden>
  • Date: Wed, 16 Feb 2005 12:38:14 -0600


On Feb 13, 2005, at 1:45 AM, Ed Rush wrote:

When I add the folder (which is on the Desktop), this test:

display dialog POSIX path of (((path to desktop) as string) & "PuzzlesToDo:" & myFileName)

shows the correct path, with slashes. However, when I put the folder into the shell command, like this:

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

I get this error:

<curl error.jpg>

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


Put the path construction in parentheses?

i.e.


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


_______________________________________________
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


References: 
 >downloading a file into a folder (From: Ed Rush <email@hidden>)

  • Prev by Date: downloading a file into a folder
  • Next by Date: Re: do shell script
  • Previous by thread: downloading a file into a folder
  • Next by thread: Setting icon
  • Index(es):
    • Date
    • Thread