Re: Safari source code
Re: Safari source code
- Subject: Re: Safari source code
- From: Michelle Steiner <email@hidden>
- Date: Sat, 19 Nov 2005 16:44:47 -0700
On Nov 19, 2005, at 3:11 PM, dor kelman wrote:
How do I get the source code of a website in html from my Safari
browser
onto TextEdit.
This works:
set x to open location "http://www.michelle.org" --"http://
news.google.com/"
tell application "Safari"
set x to source of document 1
end tell
tell application "TextEdit"
if not (document 1 exists) or (the text of document 1 is not "")
then make new document
set text of document 1 to x
end tell
-- Michelle
--
"Other than telling us how to live, think, marry, pray, vote, invest,
educate our children and, now, die, I think the Republicans have done
a fine job of getting government out of our personal lives."
--Craig Carter
_______________________________________________
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