我尝试通过从 Mac 中的命令行发送消息来测试 imessage。如果接收者的苹果账户已通过imessage激活,则消息发送成功。因此,我们可以检查收件人的电子邮件是否已使用 imessage 激活吗?
最佳答案
使用 osascript:
状态和服务类型
osascript -e 'tell application "Messages" to return {service type, status} of (service of some buddy whose handle contains "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="37554253534e775a56541954585a" rel="noreferrer noopener nofollow">[email protected]</a>")'
关于ios - 如何以编程方式检查电子邮件是否已通过 imessage 激活?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27776850/