0

我需要提取/读取通过 iMessage 接收的传入消息的内容。我很难找到正确的命令来提取信息。有人能指出我正确的方向吗?我知道到目前为止我没有太多,我是新手:(

using terms from application "Messages"
on message received theMessage
return theMessage

end message received
end using terms from
4

1 回答 1

0

我建议您查看 ElCapitain 您的用户库/应用程序脚本/com.apple.iChat 中提供的示例,有“混合消息 Case.applescript 文件,其中包含每种消息情况的语法(接收、发送、邀请......)

根据该文件,您必须将属性添加到“收到的消息”中,例如:

on message received theMessage from theBuddy for theChat
于 2016-04-12T19:34:20.340 回答