Re: Mysterious OSX Mail scripting problem
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