• 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: Deivy Petrescu <email@hidden>
  • Date: Thu, 12 May 2016 19:49:07 -0400

> On May 12, 2016, at 19:18 , Stockly, Ed <email@hidden> wrote:
>
> Hmmm… I copied that URL directly from Yvan's script and it worked. The -L
> option is supposed to handle redirects, but that didn't seem to help.
>
> Your version works very well.
>
> Thanks Everyone!
>

Just a note: -L is supposed to handle redirects if  indicated  with a Location  header and a 3XX response code.
I know that the original url is empty, and, may be the server is not returning the 301 response.

Note that the curl script will download one file, if you want the pictures or other kind of files, you have to find them and download them separately.

>
> On 5/12/16, 3:17 PM, "Deivy Petrescu" <email@hidden> wrote:
>
>
>> The URL does not work, because it redirects to a different URL
>> :"https://support.apple.com/fr-fr/HT1582";
>>
>> This script will work;
>>
>>
>> do shell script "curl https://support.apple.com/fr-fr/HT1582  >>
>> /Users/YourIdHere/myLocalFile.html "
>> delay 2
>> tell application "Finder" to open file
>> “YourHD:Users:YourIdHere:myLocalFile.html"
>>
>

Deivy Petrescu
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:
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: "Stockly, Ed" <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>)
 >Re: Downloading a file from the internet with a URL (From: "Stockly, Ed" <email@hidden>)
 >Re: Downloading a file from the internet with a URL (From: Rick Gordon <email@hidden>)
 >Re: Downloading a file from the internet with a URL (From: "Stockly, Ed" <email@hidden>)
 >Re: Downloading a file from the internet with a URL (From: Deivy Petrescu <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