• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Mac OS X mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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!


  • Prev by Date: Re: Ready to learn
  • Next by Date: Re: Getting currently selected message in Mail.app
  • Previous by thread: Re: Ready to learn
  • Next by thread: Are the Help/Guidebooks accessible in Smile?
  • Index(es):
    • Date
    • Thread