在AppleScript中通过iMe​​ssage发送随机图像

时间:2018-01-18 21:58:04

标签: image random applescript imessage

我试图从" lv"发送随机图像。通过iMe​​ssage在桌面上的文件夹。

{{1}}

使用

{{1}}

我可以说随机图像有效。但它没有传递给iMessage。错误消息表示"期望的类型无法转换"。错误代码-1700

感谢您的任何建议!

1 个答案:

答案 0 :(得分:0)

更改以下行:

    set randomImage to POSIX file theFile

到此:

    set randomImage to (theFile as alias)

其余的应该没问题。