Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 2.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[6,798 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 whoever posted them. This site is not responsible for what they say.
An AppleScript to email Safari URLs via PowerMail
Authored by: JohnnyMnemonic on Mar 26, '03 09:38:52PM

Your link is broken: it points to a 192.etc URL.

Nice hint though!



[ Reply to This | # ]