• 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: Count messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Count messages


  • Subject: Re: Count messages
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 25 Jan 2005 09:46:45 -0800

On Jan 25, 2005, at 12:44 AM, Michelle Steiner wrote:

tell application "Mail"
    tell message viewer 1
        count messages
    end tell
end tell

The result is the number of messages in the user-selected mailbox or mailboxes, excluding any mailboxes contained within the selected ones.

Shouldn't it return the total number of messages in the mailboxes?

It should be the number of messages that the message viewer is showing to you. That may not be what you want, but that's what you asked for.



--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Count messages
      • From: Michelle Steiner <email@hidden>
References: 
 >Count messages (From: Michelle Steiner <email@hidden>)

  • Prev by Date: launch remote script on OS9 machine from OSX machine
  • Next by Date: Re: Simple short email, direct from Applescript?
  • Previous by thread: Count messages
  • Next by thread: Re: Count messages
  • Index(es):
    • Date
    • Thread