MacSparky published a script to link to currently selected email in apple mail, even if mail is in the background (script below)
The script works but the result is rather cryptic, giving no clue as to the subject of the email.
is there any way to modify the script to yield the subject line as a clickable link.
example: [Grab a bestseller for just 99p] (the subject) which if clicked on would go to the email link message:%3C4Q80.A9LF.943CHBAW78.firstname.lastname@example.org%3E
thanks in advance for your time and help !
(* Returns a link to the first selected Apple Mail message *) tell application "Mail" set _msgs to selected messages of message viewer 0 if (_msgs is not equal to missing value) then set _msg to first item of _msgs set _msgID to do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv)' " & (message id of _msg) return "message://%3C" & (_msgID) & "%3E" end if end tell