Re: Downloading a URL's Source Code
Re: Downloading a URL's Source Code
- Subject: Re: Downloading a URL's Source Code
- From: Andrew Oliver <email@hidden>
- Date: Wed, 12 Jan 2005 22:22:11 -0800
On 1/12/05 9:14 PM, "Joe Frichtl" <email@hidden> wrote:
> Hello,
>
> I was wondering how to download/get an URL's source code In Mac OS X
> Applescript. (I would love to be able to get the source code in to a
> string variable and do some string manipulation to extract the info
> from a website.)
>
> In Mac classic we were able to use the "URL Access Scripting"
> application and use the download command. Where did this feature go in
> Mac OS X AppleScripting?
URL Access Scripting is in exactly the same place it was, with exactly the
same dictionary. If you used that in the past you can still use it.
If you want to avoid downloading the file to disk before reading into your
script (the only option with URL Access Scripting), then use 'curl' via do
shell script:
set pageSource to do shell script "curl \"http://www.apple.com/\""
_______________________________________________
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