Re: Mail scripting : How to select…
Re: Mail scripting : How to select…
- Subject: Re: Mail scripting : How to select…
- From: Axel Luttgens <email@hidden>
- Date: Fri, 9 May 2008 17:00:27 +0200
Le 9 mai 08 à 16:50, awaw a écrit :
[...]
I can't select any "sub-folder" of Junk, Trash or Sent Mailboxes.
Uppercase doesn't help…
tell application "Mail"
set selected mailboxes of first message viewer to {mailbox "INBOX"
of account "Gérard"}
-- OK if "inbox" in uppercase!
set selected mailboxes of message viewers to {inbox}
--> OK
set selected mailboxes of first message viewer to {inbox}
--> OK
set selected mailboxes of message viewers to {junk mailbox}
--> OK
set selected mailboxes of message viewers to {trash mailbox}
--> OK
set selected mailboxes of message viewers to {sent mailbox}
--> OK
set selected mailboxes of message viewers to {mailbox "Gérard" of
mailbox junk mailbox}
--> No error but NO selection
As I outlined in the other email, have a look at the output of:
tell application Mail to get mailboxes of junk mailbox
This should then lead to write:
set selected mailboxes of message viewers to {mailbox "Junk" of
account "Gérard"}
And so on... ;-)
HTH,
Axel
_______________________________________________
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