I am aware of the drawbacks of what I am trying to do. But hook:// type links do not work in iOS for me. I would like to be able to copy the message:// link instead when hooking to an email.
I know there is a script to do that but I have not been able to locate it. Can someone help me?
I just checked Hookmark iOS. It can open hook://email… links. Do you have problem to open it?
If you still prefer a script that return message://, here is the script for Get Address:
Get Address
tell application "Mail"
try
set theSelection to selection
set theMessage to item 1 of theSelection
set mid to message id of theMessage
set subj to subject of theMessage
set wname to name of front window
return "[" & subj & "](" & "message://<" & mid & ">)" -- an old message
on error eStr number enum
--displaydialog eStr & "step 2"
end try
end tell
You also have to remove Open Item script and remove “email” scheme at the bottom of Open item script pane. Last, click on “Save” button.