Wed, 2006-03-08
A mail-to AppleScript
Miles Metcalfe sent me an AppleScript to mail the selected headline. It's as simple as this:
tell application "endo"
try
set this_article to the (selected article)
set this_title to title of this_article
set this_link to link of this_article
set this_body to this_link & " - " & this_title & return
tell application "Mail"
set mail_message to make new outgoing message with properties {subject:this_title, content:this_body}
activate
tell mail_message to set visible to true
end tell
on error msg number num
if num is not -128 then
display dialog msg buttons {"OK"} default button 1 with icon stop
end if
end try
end tell
Technorati Tags: aggregator, applescript, mail, endo