2

In OS X, the Messages app can be launched with a hyperlink to messages: or imessage:. I can add a phone number to the URL and it will open up a new message for that person. Is it possible to also pre-fill the message body in OS X?

For reference, in iOS this is accomplished via adding &body to the URL. I have tried &body, &compose, &message, &text, etc. in OS X without luck. Any ideas on how to prepopulate the message?

Community
  • 1
  • 1
bwanam
  • 61
  • 5

1 Answers1

0

No, you can't pre-fill out the body of the message text. Probably some reason related to security.

iMessage will take a userid: imessage://your@apple.id.com

and Message opens up mail. The only parameter is a previous message ID. e.g. message://<insert-your-message-id-here>

One thing you could do is try a mailto: URL. That is, something like:

mailto:foo@example.com?cc=bar@example.com&subject=Greetings%20from%20San%20Francisco!&body=Wish%20you%20were%20here!

I just tried it in Firefox for MacOS and it works great!

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • You're correct that `message:` opens Mail, but `messages:` does open Messages. Found via this command: `/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump|egrep "(bindings.*\:$)"|sort` – bwanam May 11 '15 at 18:31
  • And thanks for the OS X Daily link, although I'm not certain the article isn't outdated. At the time it was written, you couldn't pre-populate the message body in iOS, but as of iOS 8 it's doable. Am wondering if there was a similar change for OS X. – bwanam May 11 '15 at 18:33