• 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: Different Mail inbox message count between AS & GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Different Mail inbox message count between AS & GUI


  • Subject: Re: Different Mail inbox message count between AS & GUI
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 14 Nov 2013 13:11:38 -0600

On Nov 14, 2013, at 12:19, John <email@hidden> wrote:
I have had the same problem with sent mailbox as well.
______________________________________________________________________

Hmm.

Okay I just sent a message to my Gmail account, so I'd have something in its Inbox.

It does NOT show up when the scripts are run.  In fact the message in the Gmail Inbox says it's actually in Archive - gmail (All Mail), although this is not actually correct.

Selecting the message and running:

tell application "Mail"
item 1 of (get selection)
result's mailbox
end tell

--> mailbox "[Gmail]/All Mail" of account "gmail" of application "Mail"

I can do something like this:

tell application "Mail"
  tell account "gmail" # The actual name of the account.
    tell mailbox "[Gmail]/All Mail"
      set msg to first message whose read status is false
      tell msg
        subject
      end tell
    end tell
  end tell
end tell

But it's really problematic, because there's quite a bit of mail in there - and quite a lot of that is marked unread.

At the moment I'm not seeing a way to simply access the Gmail Inbox.  If someone has found a work-around please chime in.

Just to be thorough I also fired off a message to my iCloud account.  It was seen by the scripts without issue.  (My other accounts are POP.)

--
Best Regards,
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

  • Follow-Ups:
    • Re: Different Mail inbox message count between AS & GUI
      • From: Michael Grant <email@hidden>
References: 
 >Different Mail inbox message count between AS & GUI (From: Michael Grant <email@hidden>)
 >Re: Different Mail inbox message count between AS & GUI (From: John <email@hidden>)

  • Prev by Date: Re: Different Mail inbox message count between AS & GUI
  • Next by Date: Re: Different Mail inbox message count between AS & GUI
  • Previous by thread: Re: Different Mail inbox message count between AS & GUI
  • Next by thread: Re: Different Mail inbox message count between AS & GUI
  • Index(es):
    • Date
    • Thread