Re: How Do I Get the html Source for a Web Page into a String?
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