• 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: Mysterious OSX Mail scripting problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysterious OSX Mail scripting problem


  • Subject: Re: Mysterious OSX Mail scripting problem
  • From: David Crowe <email@hidden>
  • Date: Thu, 31 May 2018 12:08:13 -0600

More information on the mysterious scripting problem with an OSX Mail mailbox.


For my scriptable accounts, something like this:

tell application "Mail"
        every mailbox of account "CNP"

end tell


Produces a list, i.e.
{«class mbxp» "mail/drafts" of «class mact» "CNP", «class mbxp»
"mail/sent-mail" of «class mact» "CNP", «class mbxp» "mail/SPAM.incoming" of
«class mact» "CNP", «class mbxp» "mail/trash" of «class mact» "CNP", «class
mbxp» "Snooze" of «class mact» "CNP", «class mbxp» "Archive" of «class mact»
"CNP", «class mbxp» "INBOX" of «class mact» "CNP", «class mbxp» "Drafts" of
«class mact» "CNP", «class mbxp» "Sent Messages" of «class mact» "CNP", «class
mbxp» "Deleted Messages" of «class mact» "CNP", «class mbxp» "Junk" of «class
mact» "CNP”}

But doing the same thing with the troublesome mailbox produces:
{}

This is interesting because within the OSX Mail application the account
functions well and clearly has mailboxes.

- David Crowe

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

 _______________________________________________
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: Mysterious OSX Mail scripting problem
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: rare early AppleScript articles
  • Next by Date: Re: Mysterious OSX Mail scripting problem
  • Previous by thread: Re: Mysterious OSX Mail scripting problem
  • Next by thread: Re: Mysterious OSX Mail scripting problem
  • Index(es):
    • Date
    • Thread