Re: How do I target Junk in Apple Mail?
Re: How do I target Junk in Apple Mail?
- Subject: Re: How do I target Junk in Apple Mail?
- From: Jim Krenz via AppleScript-Users <email@hidden>
- Date: Wed, 15 Apr 2020 15:39:53 -0700
Thank you Axel! That explains it and it works perfectly!
> On Apr 15, 2020, at 3:05 pm, Axel Lüttgens via AppleScript-Users
> <email@hidden> wrote:
>
>
>> Le 15 avr. 2020 à 19:33, Jim Krenz a écrit :
>>
>> Hello all,
>>
>> I want to make a AppleScript to target the main Junk folder in Apple Mail.
>>
>> Right now, I can target a Junk folder of a particular account with this:
>>
>> tell application "Mail"
>> set selected mailboxes of message viewer 1 to mailbox "Junk" of account
>> "JK@g"
>> end tell
>>
>> How do I just go to “Junk”? Is there a way?
>
> Hello Jim,
>
> You could make use of application's "top level Junk mailbox":
>
> tell application "Mail"
> set selected mailboxes of message viewer 1 to junk mailbox
> end tell
>
> That mailbox in fact has all individual account junk mailboxes as elements:
>
> tell application "Mail"
> mailboxes of junk mailbox
> end tell
>
> 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
_______________________________________________
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