消息 - AppleScript在MacOS上发送图像12

发布于 2025-02-10 13:45:36 字数 396 浏览 1 评论 0原文

因此,我以前有这个苹果本

set filePath to (path to desktop as text) & "photo.png"

tell application "Messages"
    set targetService to 1st account whose service type = iMessage
    set targetBuddy to participant "+18005555555" of targetService
    send file filePath to targetBuddy
end tell

起作用,但是在Macos 12中,它看起来像是在起作用(请参阅进度栏),但最终timesout并指出它无法发送。

发送此消息有更新吗?

So I have this AppleScript

set filePath to (path to desktop as text) & "photo.png"

tell application "Messages"
    set targetService to 1st account whose service type = iMessage
    set targetBuddy to participant "+18005555555" of targetService
    send file filePath to targetBuddy
end tell

worked before but in macOS 12 it looks like it's working (see the progress bar) but eventually timesout and states it can't be sent.

Is there an update to sending this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文