Email NetNewsWire articles with AppleScript and Mail

Nov 11, '03 09:43:00AM

Contributed by: gphat

This simple Applescript will create a new email with the selected NetNewsWire's headline title as its subject, and a body with the URL.


tell application "NetNewsWire"
  set theURL to (URL of selectedHeadline)
  set theTitle to (title of selectedHeadline)
end tell

tell application "Mail"
  set accountAddresses to (email addresses of first account)
  set fromAddress to first item of accountAddresses
  set theMessage to make new outgoing message
  set visible of theMessage to true
  set subject of theMessage to theTitle
  set content of theMessage to theURL
 
  activate
end tell
Just create and save the script, and drop it into your NetNewsWire scripts folder!

Comments (0)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20031103104001143