• 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: Safari source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Safari source code (From: dor kelman <email@hidden>)

  • Prev by Date: Re: Check For Open Application
  • Next by Date: Re: Safari source code
  • Previous by thread: Safari source code
  • Next by thread: Re: Safari source code
  • Index(es):
    • Date
    • Thread