Parse iMessage threads?


I’ve looked around the Scriptable docs and here on the forums but haven’t seen anything in the ballpark for this.

Is it possible to access existing message threads and/or loop over individual items in a message thread?

Use case: loop over messages in a thread in the past 7days and save all image attachments to the device.

1 Like

I’m afraid this isn’t possible. I’d love to add support for this but Apple doesn’t provide an API that enables third part developers to access messages.

Thanks for confirming this. I had begun to assume as much.

I ended up doing this on my Mac with an AppleScript that runs a query on the Messages chat SQLite database to find the attachment paths and copy the files over to another directory.

I’ll post my script here soon.

1 Like