Get message:// link instead of hook://email

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 would love to have the same functionality. Right now, to get message:// links I use an Alfred workflow

Welcome to Hookmark forum, @TechnoDog .

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.

Thank you

I just checked Hookmark iOS. It can open hook://email… links. Do you have problem to open it?

I cannot find a Hookmark iOS app. Can you please share the App Store link?

Thank you for sharing the script. I’m new to Hookmarks. Do I replace the existing Get Address script for com.apple.mail with the one that you shared?

For Hookmark iOS app, please send your request to support@cogsciapps.com.

Yes. You also have to remove the Open script and scheme name.

That worked! Thanks!