如何通过超链接在OS X消息应用程序中预先填充消息正文?

时间:2021-11-05 08:29:00

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?

在OS X中,可以使用指向消息的超链接启动消息应用程序:或imessage:。我可以在URL中添加一个电话号码,它会为该人打开一条新消息。是否可以在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?

作为参考,在iOS中,这是通过向URL添加&body来实现的。我已经在OS X中尝试过&body,&compose,&message,&text等,但没有运气。有关如何预填充邮件的任何想法?

1 个解决方案

#1


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

iMessage将采用用户ID: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>

和消息打开邮件。唯一的参数是先前的消息ID。例如消息:// <插入,您的消息id,在这里>

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

你可以做的一件事是尝试mailto:URL。就是这样的:

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!

我只是在Firefox for MacOS中尝试过它,效果很好!

#1


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

iMessage将采用用户ID: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>

和消息打开邮件。唯一的参数是先前的消息ID。例如消息:// <插入,您的消息id,在这里>

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

你可以做的一件事是尝试mailto:URL。就是这样的:

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!

我只是在Firefox for MacOS中尝试过它,效果很好!