Re2: Mail scripting : How to select…
Re2: Mail scripting : How to select…
- Subject: Re2: Mail scripting : How to select…
- From: awaw <email@hidden>
- Date: Fri, 9 May 2008 18:02:31 +0200
An another detail…
Mail in French :
inbox = Boîte de réception
sent mailbox = Messages envoyés
trash mailbox = Corbeille
junk mailbox = Courrier indésirable
Mail help and dictionnary are in english…
The translation is not automatic!
The examples are not very numerous.
The selection of the true name is not easy sometimes!
I was exhaustif so I used for example "junk mailbox" and not only
"Junk" …
For sure it's not an excuse but...
So I'm happy with your helping.
Gérard
Le 9 mai 08 à 17:00, Axel Luttgens a écrit :
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 (applescript-
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