• 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: Yvan KOENIG <email@hidden>
  • Date: Thu, 31 May 2018 21:00:41 +0200


> Le 31 mai 2018 à 20:08, David Crowe <email@hidden> a écrit :
>
> 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
> _

Something is odd because here I got the true name of objects:

{mailbox "forums Apple" of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of
application "Mail", mailbox "SentFolder:Sent Messages" of account id
"606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application "Mail", mailbox "Trash"
of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application "Mail",
mailbox "trashFolder:Deleted Messages" of account id
"606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application "Mail", mailbox "Archive"
of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application "Mail",
mailbox "Notes/- Import" of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C"
of application "Mail", mailbox "Notes" of account id
"606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application "Mail", mailbox "INBOX"
of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application "Mail",
mailbox "Drafts" of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of
application "Mail", mailbox "Sent Messages" of account id
"606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application "Mail", mailbox "Deleted
Messages" of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of application
"Mail", mailbox "Junk" of account id "606ACFB8-F0A8-4845-8EC4-E3F5A6D1979C" of
application "Mail"}


Yvan KOENIG running High Sierra 10.13.4 in French (VALLAURIS, France) jeudi 31
mai 2018 20:56:00



 _______________________________________________
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: 
 >Re: Mysterious OSX Mail scripting problem (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Mysterious OSX Mail scripting problem
  • Next by Date: Re: Mysterious OSX Mail scripting problem
  • Previous by thread: Re: Mysterious OSX Mail scripting problem
  • Index(es):
    • Date
    • Thread