Re1: Mail scripting : How to select…
Re1: Mail scripting : How to select…
- Subject: Re1: Mail scripting : How to select…
- From: awaw <email@hidden>
- Date: Fri, 9 May 2008 17:40:49 +0200
- Resent-cc: asu Users <email@hidden>
- Resent-date: Fri, 9 May 2008 22:22:52 +0200
- Resent-from: awaw <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Axel Luttgens <email@hidden>
Thanks,I re-send it because Re2 appears but not the first one (Re)
I add also a new problem at the end.
__________ set selected mailboxes of message viewers to {mailbox "Junk" of account "Gérard"}
With "Junk", "Trash" or "Sent" only : no problem!
I have tried to known these names but I never succeed. tell application "Mail" set x to mailboxes of inbox set y to count of x display alert y set i to 1 repeat y times set z to item i of x as string display alert z set i to i + 1 end repeat end tell ==> Erreur d'AppleScript "Il est impossible de rendre «class mbxp» "INBOX" of «class mact» "Gérard" of application "Mail" en type string."
tell application "Mail" set x to mailboxes of inbox set y to count of x display alert y set i to 1 repeat y times set z to name of item i of x as string display alert z set i to i + 1 end repeat end tell ==> INBOX INBOX (y times)
But no names
Is it possible to obtain them otherwise? ____________
The last "gravel in my shoes".
Trash mailbox and Junk mailbox have a special "sub-folder" : "sur mon Mac"
I don't know the "real" name for using it in Applescript (to select it).
Thanks Gérard |
_______________________________________________
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