Re: Scripting Mac OS X mail.app
Re: Scripting Mac OS X mail.app
- Subject: Re: Scripting Mac OS X mail.app
- From: cricket <email@hidden>
- Date: Fri, 5 Oct 2001 15:54:07 -0700
Assuming you have a mailbox named 'INBOX' and the name of the account is
'IMAP:email@hidden', you would write the script like this:
tell application "Mail"
set x to the count of messages of mailbox "INBOX" of account
"IMAP:email@hidden"
end tell
If you are targeting Personal Mailboxes, you would use an account name of
'Personal Mailboxes' in the above script
- cricket
On Friday, October 5, 2001, at 03:49 PM, Christopher Nebel wrote:
>
> i have one problem with mail.app where i can't seem to find the answer
>
> on;
>
>
>
> tell application "Mail"
>
> set x to the count of messages of mailbox "email@hidden"
>
> end tell
>
>
>
> results in;
>
>
>
>
>
> Mail got an error:
>
> NSrecieverEvaluationScriptError: 3
>
>
>
> does this mean i can't get the count of messages in an mail folder ??
>
>
>
> how can i backup my email now in FileMaker ??
>
>
>
> is this function still broken, or am i doing something wrong?
>
>
----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
What a fascinating splash of controlled ink!