• 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 from the internet with a URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Downloading a file from the internet with a URL


  • Subject: Re: Downloading a file from the internet with a URL
  • From: "Stockly, Ed" <email@hidden>
  • Date: Thu, 12 May 2016 19:25:12 +0000
  • Thread-topic: Downloading a file from the internet with a URL

OK, this any idea why this doesn't work?


I've tried it with and without making a file before trying to download.  Not sure about the –o and –O options.


______



set fileToDownload to quoted form of ("http://support.apple.com/kb/HT1582?viewlocale=fr_FR")


set filePath to (choose file name)

set openFile to open for access filePath with write permission

close access openFile


set filePath to POSIX path of filePath

set myFile to quoted form of (filePath as text)


set XMLbrut to do shell script "curl -o " & filePath & " " & fileToDownload


set myFile to quoted form of ((filePath as text) & -1)


set XMLbrut to do shell script "curl -O " & filePath & " " & fileToDownload



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Downloading a file from the internet with a URL
      • From: Doug McNutt <email@hidden>
    • Re: Downloading a file from the internet with a URL
      • From: Rick Gordon <email@hidden>
References: 
 >Re: Downloading a file from the internet with a URL (From: Steve Mills <email@hidden>)
 >Re: Downloading a file from the internet with a URL (From: "email@hidden" <email@hidden>)
 >Re: Downloading a file from the internet with a URL (From: Yvan KOENIG <email@hidden>)
 >Re: Downloading a file from the internet with a URL (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Downloading a file from the internet with a URL
  • Next by Date: Re: Downloading a file from the internet with a URL
  • Previous by thread: Re: Downloading a file from the internet with a URL
  • Next by thread: Re: Downloading a file from the internet with a URL
  • Index(es):
    • Date
    • Thread