![]() Repeat with eachAccount in selecterAccounts Set selecterAccounts to choose from list accountList with title ("Pick the desired accounts") with multiple selections allowed Chooses desired Accounts from accountlist Set the end of accountList to (name of eachAccount) Here's the XML for using ⌃M as a trigger for this macro It's easier to copy and paste its contents from a example in Keyboard Maestro Editor window and its menu (Edit > Copy as > Copy as XML) Keyboard Maestro sets the contents of its items properties via xml dictionaries. # The Keyboard Maestro Macro Group Name (will be created if there is no such group yet). Creates the corresponding set of Macros for Keyboard Maestro ![]() Asks for user selection of desired mailboxes on that listĢ.3. ![]() Creates a list of every mailbox on that accountĢ.2. Gets the list of Accounts in Mail.App and asks to point which ones should be scannedĢ.1. Use AppleScript version "2.4" - Yosemite (10.10) or laterġ. UPDATED: Added a step to select the desired accounts, to work around issue raised by bellow - Based on idea]() of using the `⌃M` shortkey to trigger a Conflict Pallete on Keyboard Maestro that will filter Macros to Move Messages to specific folders on macOS Mail.app Hope it can help someone as well and, please, feel free to improve on it. I’m sure there are many ways that this code coud be better more efficient, but hey… I’m not a dev myself and it worked fine for me. It will fetch a list of the folders (mailboxes in Mail parlance) for each of your Mail.app accounts and ask for which ones you would like to create Macros for. (It would probably be easier to create them manually instead of figuring out the code, but what’s the fun in that?) So I’ve hacked my way with AppleScript to automate the creation of these macros. But the prospect of creating and changing each rule to be somewhat tedious. ’s idea of using the same “Move” shortcut ( ^M) combined with a Keyboard Maestro Pallete is really something.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |