2
我無法通過使用Applescript獲取文本消息聊天的Id。獲取郵件標識
這是到目前爲止我的代碼:
using terms from application "Messages"
on message sent theMessage for theChat
display dialog (get id of theChat)
end message sent
end using terms from
當我使用AppleScript的處理程序,我得到一個錯誤:
Can’t get id of «class ictt» id "iMessage;-;+1xxxxxxxxxx". (-1728)
(X的代替電話號碼)
我如何避免這個錯誤,並得到所需的輸出只是iMessage;-;+1xxxxxxxxxx
?