• 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: How Do I Get the html Source for a Web Page into a String?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How Do I Get the html Source for a Web Page into a String?


  • Subject: Re: How Do I Get the html Source for a Web Page into a String?
  • From: Laine Lee <email@hidden>
  • Date: Tue, 02 Nov 2010 15:06:09 -0500
  • Thread-topic: How Do I Get the html Source for a Web Page into a String?

Title: Re: How Do I Get the html Source for a Web Page into a String?
Here's what I've been using lately when I've got a copy of the rendered web content on the clipboard. Conversion options depend on several things, of course.

set textentered to get the clipboard as «class RTF »
set the clipboard to textentered
do shell script "pbpaste | textutil -convert html  -inputencoding  iso_8859-1  -format rtf  -stdin -stdout | pbcopy -Prefer txt"

Laine Lee


On 10/29/10 7:34 AM, "S. J. Cunningham" <email@hidden> wrote:

> Surely there is an easier way to do this directly.  Now I am saving it to a
> file and reading the file back in.
>
> Thanks
>
> Steve Cunningham _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> edu
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to 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: How Do I Get the html Source for a Web Page into a String?
      • From: "S. J. Cunningham" <email@hidden>
  • Prev by Date: Re: Window watcher
  • Next by Date: Re: How Do I Get the html Source for a Web Page into a String?
  • Previous by thread: Re: How Do I Get the html Source for a Web Page into a String?
  • Next by thread: Re: How Do I Get the html Source for a Web Page into a String?
  • Index(es):
    • Date
    • Thread