To get the content of an iMessage using AppleScript, you can use the following code:

tell application "Messages"
    set iMessages to text of messages of last text chat
    repeat with iMessage in iMessages
        set messageContent to content of iMessage
        display dialog messageContent
    end repeat
end tell

This script will get the content of all the iMessages in the last text chat and display it in a dialog box. You can modify it according to your specific requirements.

How to Get iMessage Content with AppleScript

原文地址: https://www.cveoy.top/t/topic/xiG 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录