I am trying to create file containing different statistics about things such as email count and such things, trial here: this proto returns empty file, not sure why. How can count the amount of emails with Automator under OS X?
Probably easier to do this with AppleScript, which you can then use in an Automator action if you like.
That will return the number of messages in each mailbox you specify in the list on line two. If use it in an Automator action, it will pass that value along to whatever the next action is.
You'll need to change the
To get the specific mailbox names, run