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

Re: Mail, count of visible messages


  • Subject: Re: Mail, count of visible messages
  • From: Robert Poland <email@hidden>
  • Date: Wed, 08 Jul 2015 09:52:06 -0600
  • Z-usanet-msgid: XID254TgHP1H3664X33

> On Jul 8, 2015, at 8:10:AM, Christopher Stone <email@hidden> wrote:
>
> On Jul 07, 2015, at 16:19, Robert Poland <email@hidden> wrote:
>>
>> Guess no one else has any ideas either…
> ______________________________________________________________________
>
> Hey Bob,
>
> Why don't you explain what you're actually trying to do.
>
> --
> Best Regards,
> Chris

I think the script sould be enough of an explanation. 😀

Here is my attempt which errors, "access not allowed”;

tell application "Mail"
	delay 0.2
	set x to (count of visible messages in  “Inbox" of account 1)
	say x
	delay 0.2
	set y to x is less than 18
	delay 0.2
end tell
return y

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


  • Follow-Ups:
    • Re: Mail, count of visible messages
      • From: Yvan KOENIG <email@hidden>
References: 
 >Mail, count of visible messages (From: Robert Poland <email@hidden>)
 >Re: Mail, count of visible messages (From: Yvan KOENIG <email@hidden>)
 >Re: Mail, count of visible messages (From: Robert Poland <email@hidden>)
 >Re: Mail, count of visible messages (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Mail, count of visible messages
  • Next by Date: Re: Mail, count of visible messages
  • Previous by thread: Re: Mail, count of visible messages
  • Next by thread: Re: Mail, count of visible messages
  • Index(es):
    • Date
    • Thread