Hi
I am having trouble with this
I want to extract the content of a mail message via applesscript and a mail rule. The content will be processed to a filemaker database and to create an appointment in iCal. I have all the other bits of script working but I cant get applescript to extract the content of the email
These either dont work and crash mail or I get “Screwed” !!!
on perform_mail_action(info)
tell application "Mail"
set theMessages to |SelectedMessages| of info
repeat with thisMessage in theMessages
try
set x to the content of thisMessage
display dialog ("Hi" & a as string)
on error
display dialog "Screwed"
end try
end repeat
end tell
end perform_mail_action
using terms from application "Mail"
on perform mail action with messages theMessages
repeat with theMessage in theMessages
try
set x to the content of theMessage
display dialog ("Hi" & a as string)
on error
display dialog "Screwed"
end try
end repeat
end perform mail action with messages
end using terms from
Regards
Model: Lots of them
Browser: Safari 523.15
Operating System: Mac OS X (10.5)