• 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: Mail, count of messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail, count of messages


  • Subject: Re: Mail, count of messages
  • From: Robert Poland <email@hidden>
  • Date: Sun, 03 May 2015 17:52:18 -0600
  • Z-usanet-msgid: XID625TecX1T8672X34

Solved, after a fashion. Kind of kludgy but it seems to work.

Since IMAP forces a count of all messages received since some unknown event.

I added to the “Keyboard Maestro” Macro the action “Take all accounts Offline" before the counting script and “Take all accounts Online” after.

> On May 3, 2015, at 8:33:AM, Robert Poland <email@hidden> wrote:
>
> Hi,
>
> Seems like a simple problem…
>
> —<Script>
> tell application "Mail"
# was: (count of messages in the inbox) is less than 14
# changed to: (count of messages in the mailbox “INBOX” of account “account name”) is less than 14
> end tell
> —</Script>
>
> With 2 messages in inbox this yields False.
>
> What am I missing?
>
> TIA,
>
> Robert Poland
> Fort Collins, CO

Robert Poland
Fort Collins, CO


 _______________________________________________
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: 
 >Mail, count of messages (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: access violation in OS X 10.10.3
  • Next by Date: Re: access violation in OS X 10.10.3
  • Previous by thread: Re: Mail, count of messages
  • Next by thread: find text in Acrobat
  • Index(es):
    • Date
    • Thread