Re: Mail, count of messages
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