Re: Downloading a file from the internet with a URL
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