• 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
Accessing Gmail Mailboxes (folders?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing Gmail Mailboxes (folders?)


  • Subject: Accessing Gmail Mailboxes (folders?)
  • From: James Roberts <email@hidden>
  • Date: Thu, 9 Sep 2010 08:53:01 -0400

I am real new using Applescript so this maybe a real lame question.

Why do some gmail mailboxes return a -1728 error and some work fine?

set target_account to "Gmail"
set target_mailbox to “Flagged"


tell application "Mail"
 get every message in mailbox target_mailbox of account target_account whose flagged status is true
end tell

Works fine. However it I change the target_mailbox to “Starred” I receive 

error "Mail got an error: Can’t get mailbox \"Starred\" of account \"Gmail\"." number -1728 from mailbox "Starred" of account “Gmail”


get name of every mailbox in account target_account

Returns

{"All Mail", "Bin", "Drafts", "Sent Mail", "Spam", "Starred", "Busy_Mac", "Elgato", "Growl", "Money_Dance", "Support Lists”, “Flagged”, "Archive", "Personal", "Receipts", "Temp", "Unflagged", "Work", "Apple Mail To Do", "Notes", "INBOX", "Drafts", "Sent Messages", "Deleted Messages", "Junk”}

So both mailboxes are showing up.

What am I missing? Help. Also any recommend Applescript books?

Jim
VVV



 _______________________________________________
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: Accessing Gmail Mailboxes (folders?)
      • From: Nathan Greenstein <email@hidden>
    • Re: Accessing Gmail Mailboxes (folders?)
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: saving/opening files in 10.4 vrs 10.6
  • Next by Date: Re: Accessing Gmail Mailboxes (folders?)
  • Previous by thread: Re: saving/opening files in 10.4 vrs 10.6
  • Next by thread: Re: Accessing Gmail Mailboxes (folders?)
  • Index(es):
    • Date
    • Thread