Using script with local folders (On my Mac)


0.) I have a working script that will carry out various functions while working on messages in IMAP/POP inboxes.

1.) I now need to be able to use this script and have it called/run by mail rules.

2.) The messages it needs to work with are in a folder (new_mails) in the “On my Mac” section of the mail accounts/folders column.

3.) I have attempted to set up a rule to run the script when new messages are copied into new_mails.

4.) The rules selection dialogue only displays accounts and does NOT display folders so I cannot specify a folder as the first argument for the rule.

5.) Does anybody know how I could set the script to run if I cannot use a rule? I did not manage to find any reference to doing this with folder actions either.

Thank you for looking and reading!