ios - 如何以编程方式检查电子邮件是否已通过 imessage 激活?

标签 ios email applescript imessage

我尝试通过从 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/

相关文章:

ruby-on-rails - ActionMailer - 使用原始 RFC822 邮件的附件创建新邮件

html - Outlook 2007 和 2010 中的富 HTML 电子邮件...如何删除上边距?

电子邮件到 SMS 网关 : recognizing replies

csv - 使用 Applescript 将列表写入 CSV

android - 从仅支持 iOS 过渡到 iOS + Android + web

iphone - 我的应用程序在 iPod 上只显示黑屏

macos - 从条形码扫描仪捕获输入,写入浏览器窗口

javascript - AppleScript:如何更改网站选项菜单的值?

iphone - 无法从 iOS 6 上的应用程序启动 map

ios - 如何获取 UITABBAR 中选定选项卡的索引