• 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
Copying a Safari Page's Text to a Mail Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copying a Safari Page's Text to a Mail Message


  • Subject: Copying a Safari Page's Text to a Mail Message
  • From: Gil Dawson <email@hidden>
  • Date: Mon, 5 Jun 2017 15:43:34 -0700

Hi--

I use this script with El Capitan...

tell application "Safari" to tell its front document
set itsTitle to its name
set itsURL to its URL
set itsText to its text
end tell

tell application "Mail"
set someContent to "From:  " & itsURL & return & return & return & itsText
set thisMessage to make new outgoing message ¬
at end of outgoing messages ¬
with properties {content:someContent, subject:itsTitle, visible:true}
end tell

...to copy an article's text into an email message without the ads, pop-ups, movies, pictures, et cetera, so that I (and my correspondent) can read it more easily.  The target message begins with a citation for where it came from. (Scholarly, eh?)

If I plan to send it, I will add a recipient, edit the Subject, then delete all extraneous text.  I also might drag over a pertinent picture or two and maybe preface the message with my comments.  I sometimes edit the article for text coding artifacts, spelling or grammar.  

I also like to "activate" the citation URL: Select it, then ⌘C, ⌘K, ⌘V and Return.  That turns it blue, so that the recipient can click it to view the website directly.

Any ideas how I can "activate the URL" within the script?

--Gil
 _______________________________________________
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: Copying a Safari Page's Text to a Mail Message
      • From: Christopher Stone <email@hidden>
    • Re: Copying a Safari Page's Text to a Mail Message
      • From: Jim Underwood <email@hidden>
    • Re: Copying a Safari Page's Text to a Mail Message
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: Using a Handler with a Whose Clause
  • Next by Date: Re: Copying a Safari Page's Text to a Mail Message
  • Previous by thread: Re: Finder preferences
  • Next by thread: Re: Copying a Safari Page's Text to a Mail Message
  • Index(es):
    • Date
    • Thread