• 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: Apple Mail – Counting Unread Emails with System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Mail – Counting Unread Emails with System Events


  • Subject: Re: Apple Mail – Counting Unread Emails with System Events
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 17 Feb 2017 16:10:59 -0600

On Feb 17, 2017, at 03:45, Yvan KOENIG <email@hidden> wrote:
No need for Satimage.
We may do the job with Apple delivered tools...
set theArray to current application's NSArray's arrayWithArray:unreadMail # ADDED
set theSum to (theArray's valueForKeyPath:"@sum.self") as integer # ADDED


Hey Yvan,

That's good to know.  Thanks.

--
Take Care,
Chris


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Apple Mail – Counting Unread Emails with System Events (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Script help for filling in Chrome credentials dialog
  • Next by Date: Re: AppleScript Droplet seems to receive strange file list
  • Previous by thread: Re: Apple Mail – Counting Unread Emails with System Events
  • Next by thread: Re: set theAttachments to theMessage's mail attachments fails when called by a rule
  • Index(es):
    • Date
    • Thread