Re: Mail's Smart Mailbox Parameters
Re: Mail's Smart Mailbox Parameters
- Subject: Re: Mail's Smart Mailbox Parameters
- From: Bob Stern via AppleScript-Users <email@hidden>
- Date: Tue, 20 Jun 2023 16:38:05 -0700
On 20 Jun 2023, at 15:08, Gil Dawson wrote:
How can I access via AppleScript the Smart Mailbox parameters on menus
that drop down when you click on the name of a Smart Mailbox in
Mail.app?
I've looked in Mail.app's Scripting Dictionary, but found nothing
relating to Smart Mailboxes.
Assuming no one has a pure AppleScript solution, you can get all or most
of the smart mailbox parameters by parsing:
~/Library/Mail/V9/MailData/SyncedSmartMailboxes.plist
Mark Aldritt posted an AppleScript handler for decoding JSON:
https://forum.latenightsw.com/t/reading-json-data-with-nsjsonserialization/958
(I'm running MacOS 12. If you're running an older or newer version of
MacOS, V9 will be V8, V10, etc.)
Bob Stern
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden