• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail's Smart Mailbox Parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Mail's Smart Mailbox Parameters (From: Gil Dawson via AppleScript-Users <email@hidden>)

  • Prev by Date: Mail's Smart Mailbox Parameters
  • Next by Date: Re: AppleScript Error "Data is being accessed by another user, script, or transaction"
  • Previous by thread: Mail's Smart Mailbox Parameters
  • Next by thread: Re: AppleScript Error "Data is being accessed by another user, script, or transaction"
  • Index(es):
    • Date
    • Thread