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

Re: Accessing Gmail Mailboxes (folders?)


  • Subject: Re: Accessing Gmail Mailboxes (folders?)
  • From: Nathan Greenstein <email@hidden>
  • Date: Thu, 9 Sep 2010 07:21:37 -0700

As for books: when I learned AS, I used Wrox's Beginning AppleScript. It was great.

--
Nathan Greenstein
email@hidden



On Thu, Sep 9, 2010 at 05:53, James Roberts <email@hidden> wrote:
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

 _______________________________________________
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

References: 
 >Accessing Gmail Mailboxes (folders?) (From: James Roberts <email@hidden>)

  • Prev by Date: Re: Accessing Gmail Mailboxes (folders?)
  • Next by Date: Re: Accessing Gmail Mailboxes (folders?)
  • Previous by thread: Re: Accessing Gmail Mailboxes (folders?)
  • Next by thread: Re: Accessing Gmail Mailboxes (folders?)
  • Index(es):
    • Date
    • Thread