Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

An AppleScript to email Safari URLs via PowerMail Web Browsers
In the same spirit as the recent An AppleScript to email Safari URLs with titles via Mail hint, I offer a similiar one but for PowerMail instead. It uses the wonderful Extra Suites background scripting application, from KANZU Utilites to position the focus of the newly-created email draft at the recipient email address field ready for addressing.
tell application "Safari"
  set theURL to URL of front document
  set theTitle to name of front window
end tell

tell application "PowerMail"
  set theURL to "<" & theURL & ">" & return
  set newMsg to make new message �
    with properties {subject:theTitle, content:theURL}
  open newMsg
  activate
  -- remove next 2 lines if Extra Suites
  -- not available
  delay 1
  tell application "Extra Suites" to type key "tab" with shift
end tell
[robg adds: The need for this hint may be eliminated by the Safari/email JavaScript hint, which should open your default email application, but I don't have another email client to test that theory with ... and with this, we now have three separate hints on emailing from Safari, so I think the topic is sufficiently covered!]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[5,161 views]  

An AppleScript to email Safari URLs via PowerMail | 1 comments | Create New Account
Click here to return to the 'An AppleScript to email Safari URLs via PowerMail' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
An AppleScript to email Safari URLs via PowerMail
Authored by: JohnnyMnemonic on Wed, Mar 26 2003 at 9:38PM PST
Your link is broken: it points to a 192.etc URL.

Nice hint though!

[ Reply to This | # ]