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

Mail, count of visible messages


  • Subject: Mail, count of visible messages
  • From: Robert Poland <email@hidden>
  • Date: Tue, 07 Jul 2015 10:24:33 -0600
  • Z-usanet-msgid: XID837TggqyI0224X32

Hi,

I’ve been ignoring all the scripts about mail, now I need one.

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: Luther Fuller <email@hidden>
    • Re: Mail, count of visible messages
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Save and restore Finder Window setup
  • Next by Date: Re: Mail, count of visible messages
  • Previous by thread: Re: Save and restore Finder Window setup
  • Next by thread: Re: Mail, count of visible messages
  • Index(es):
    • Date
    • Thread