I want to carry out some actions on a single inbox in a single account. The system has multiple email accounts active and I want to ensure the my script operates only on 1 inbox. Specifically, I want to save the attachments from that single account to a folder on the hard drive. I do not understand how to instruct finder to operate only on a single inbox.
I thought i could use this tell line to set/ identify the inbox i want the subsequent scripting to work on.
set theInbox to inbox of account “Baggage”
I get this error message: error “Mail got an error: Can’t get inbox of account "Baggage".” number -1728 from inbox of account “Baggage”
The apple list says this is what the message means; “The referenced object doesn’t exist. This is a run-time resolution error, such as when attempting to reference a third object when only two objects exist”.
The account named DOES exist so I must be using the wrong syntax. Could anyone help me with a clarification of how i should set this?