• 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: Mail scripting : How to select…
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re1: Mail scripting : How to select…
      • From: awaw <email@hidden>
    • Re2: Mail scripting : How to select…
      • From: awaw <email@hidden>
References: 
 >Mail scripting : How to select… (From: awaw <email@hidden>)
 >Re: Mail scripting : How to select… (From: Luther Fuller <email@hidden>)
 >Re: Mail scripting : How to select… (From: awaw <email@hidden>)

  • Prev by Date: Re: keystroke - cancel modifiers?
  • Next by Date: Re: keystroke - cancel modifiers?
  • Previous by thread: Re: Mail scripting : How to select…
  • Next by thread: Re2: Mail scripting : How to select…
  • Index(es):
    • Date
    • Thread