Skip to content

Instantly share code, notes, and snippets.

@star-szr
Created April 3, 2014 03:02
Show Gist options
  • Save star-szr/9947577 to your computer and use it in GitHub Desktop.
Save star-szr/9947577 to your computer and use it in GitHub Desktop.
AppleScript application to open x-dispatch:// links in Postbox on OS X
on open location messageUri
(*
Extract message ID from the message:// URI. Where [MESSAGEID] is the message ID,
the Dispatch OS X URL Helper sets up URLs for Mail.app in the following format:
message://%3c[MESSAGEID]%3e
*)
set messageId to text 14 thru -4 of messageUri
do shell script "open x-postbox-message://" & messageId
end open location
@star-szr
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment