Q: Applescript for Mail Not Working Since Upgrade to El Capitan
I have an Applescript to forward emails to Evernote that has stopped working since I upgraded to El Capitan. It opens the new message but does not update the email address or subject and does not send. Again, this worked prior to upgrading to El Capitan. Any help is much appreciated.
set theAddress to "email@evernote.com"
display dialog "Doc Name" default answer ""
set DocName to text returned of result
display dialog "Tags" default answer ""
set Tags to text returned of result
try
tell application "Mail"
set theSelection to selection
if DocName = "" then
set thesubject to subject of item 1 of theSelection & " " & Tags
else
set thesubject to DocName & " " & Tags
end if
set theForwardedMessage to forward (item 1 of theSelection) with opening window
tell theForwardedMessage
make new to recipient at end of to recipients with properties {address:theAddress}
set subject to thesubject
end tell
activate
delay 1
send theForwardedMessage
end tell
end try
OS X El Capitan (10.11)
Posted on Oct 18, 2015 3:23 PM