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: Doug McNutt <email@hidden>
- Date: Thu, 12 May 2016 14:39:36 -0400
On 05/12/2016 12:08 PM, Steve Mills wrote, in part:
On May 12, 2016, at 10:56 AM, "Stockly, Ed" <email@hidden> wrote:
What is the best way to download a file from the internet if you have
the URL.
"do shell script" and the curl command.
curl is really useful and is being kept up to date with a whole lot of
options. The "man curl" command will get you some options you might
find useful. I donno if you can 'do shell script' "man curl" but it's
pretty easy in bash.
To start with you will want the -o FileSpec to tell curl where you want
the file to be placed..
If you're using an http or https address you will need the whole thing
complete with the :: stuff. You may need to put quote marks around the
html path if it contains stuff that a UNIX shell might think it's for them.
curl -o /home/doug/Downloads/whereitgoes "http://dotdotdot/@moredot.com"
But curl will work with other things like ftp.
_______________________________________________
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