• 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 URL's Source Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Downloading a URL's Source Code (From: Joe Frichtl <email@hidden>)

  • Prev by Date: Downloading a URL's Source Code
  • Next by Date: Re: Passing arguments to the script from command line.
  • Previous by thread: Downloading a URL's Source Code
  • Next by thread: Tar/gzip is messing up icons
  • Index(es):
    • Date
    • Thread