Does anyone know how to pull the subject line of an email, via an Applescript attached to the Rle in Mail.app, and set that subject line to a variable in the Applescript?
Thanks,
Kristin.
Try this:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with thisMessage in theMessages
tell thisMessage
set theSubject to subject
end tell
end repeat
end tell
end perform mail action with messages
end using terms from
This will do the same from within Script Editor:
tell application "Mail"
set thisMessage to item 1 of (get selection)
tell thisMessage
set theSubject to subject
end tell
end tell
Frowned on to post the same request twice, K.
Sorry. 8(
k.