Applescript to move mail to exchange subfolder

I am trying to create a shortcut keystroke to move emails to sub folders of an account ( Inbox Zero). I know how to create the service in automator and assign a keystroke. The issue is with moving the mail to a subfolder in my Exchange account. I have 3 different mail boxes configured in Mail and the mailbox in question is an Exchange Account.


Here is my folder structure:

User uploaded file

I am trying to move selected mail to the "1 TODO" folder.

Here is my script:

User uploaded file


The error I get is: "Mail got an error: Can't get mailbox "1 TODO" of account "OBS".


I think it is an issue with how I am referencing the sub folder but can't figure out the proper declaration. Oh yeah I am on El Capitan 10.11.1


Any help is greatly appreciated!

MacBook Pro (Retina, 13-inch,Early 2015), OS X El Capitan (10.11.1)

Posted on Nov 2, 2015 7:59 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Applescript to move mail to exchange subfolder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.