Applescript to delete Messages conversations

I'd like an Applescript that deletes all my iMessage conversations in the Messages app.


Could somebody please tell me how to get all my conversations and then delete them using Applescript? Thanks!

OS X Mountain Lion (10.8)

Posted on Jul 17, 2013 8:52 PM

Reply
3 replies

Jul 17, 2013 9:35 PM in response to wpearse

Can you clarify your request?


More specifically, explain what you want a script to do differently than the Messages preference option to (not) 'save history when conversations are closed'?


From your description it sounds like the easiest option is to just turn on that preference setting, and your history won't be saved, and therefore won't need to be explicitly deleted.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Applescript to delete Messages conversations

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.