A repository for several simple scripts I have for various things.
A simple Applescript to forward the currently selected email message(s) from Mac Mail and then delete them.
I use this to forward emails to Todoist as an Alfred action.
- Create a workflow to execute the script (such as Alfred Run NSAppleScript)
- Edit the workflow to contain your parameters\
- Set the destination user under "set recipient address" and "msgrecipient"
- Set msgSender to your "From" address on your email account
- While message(s) is/are selected within Mac Mail, run the script.
- They will be forwarded and set to the recipient email, then deleted.
- If you don't want message deleted, you can remove the "delete current_Message" section
Thanks to MacScripter and StackOverflow