• 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: How do I target Junk in Apple Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I target Junk in Apple Mail?


  • Subject: Re: How do I target Junk in Apple Mail?
  • From: Axel Lüttgens via AppleScript-Users <email@hidden>
  • Date: Thu, 16 Apr 2020 00:05:46 +0200
  • Ironport-phdr: 9a23:pjaoth05oKWc3qMfsmDT+DRfVm0co7zxezQtwd8ZseIUK/ad9pjvdHbS+e9qxAeQG9mCtrQf16GO6eigATVGvc/d9ihaMdRlbFwst4Y/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbuv6FZTPgMupyuu854PcYxlShDq6fLh+MAi6oR/eu8ULgYZuMKg8xxTGrndUZehd2GdkKU6Okxrm6cq84ZFu/z5Mt/498sJLTLn3cbk/QbFEAzsqNHw46tf2vhfZVwuP4XUcUmQSkhVWBgXO8Q/3UJTsvCbkr+RxwCaVM9H4QrAyQjSi8rxkSAT0hycdNj4263/Yh8pth69Guh2hphh/w4nJYIGJMfd1Y63Qcc8GSWdHQ81cUTFKDIGhYIsVF+cPPfpXoYbyqFUToxW+CxeiC+HsxDFPnXL2wbQ60+E9HQHGwAAtHdQDu2nUotXvM6cSVPi4wbXHzDrda/NZwTHz8JTUchA9rvGDQ7RwcdHMwkQoDQzEgUufqYj/MzORy+QNr3Sb7+V+WuKpkG4qsBpxojuvx8cqlIbJmpgZxUva+ihgxos+ON62SFZjbNOgDZdcrTyWOohqTs84Xm1kpiY3xqcYtZO0cyUHzoksyQTFZPydaYeI5wruVOOWIThlmn1oYKm/hxOu8Ui4ze38S9W03E5KriVbltnMsWgA2BjO5sWDVPdx5Fqt1DeM2gzJ9+1IO045mqzDJ54gxL4/iIYTvFzHEyPrgkn6kaybelk+9uS19ejqYq/qqoGTOoJ7kg3+N74hms27AeQ2KAgOWG2b9Pym27zs40L5RK9GjvkrkqnFrJDaKtoUpqiiAwJOyYYj6Ba+DzG439QEh3UIN0xKdAqdj4f1I1HOPOz4DfCnjlu2iDdr3/TGMaP6AprRNHjDka/hfapk505B0wo808pf54lPB7EFIfLzQVPxtMfCAhAjKwy02+LnB8tn2owCXmKPB/zRDKSHuESVrrYmO/GIaZQeojflN704/PP0llc9mEQBZu+gxYMTZTazGfEwcGuDZn+5q8cMFVAuKhYiQ+HskxXWWC5eYzC2Qr4g6Tw9E6q9DpbFS5zrirHXj3TzJYFfem0TUgPEKnzvbYjRA/o=
  • Ironport-sdr: RKIKdjQLVXKXj17lNdjd78XrqHQyxObZQzVf5wL/5+xKTr5Szf+oeCx2iulqgf4l6aaPutw9r/ Chgpq3fHVS+SjKpoLs60AjccMmMi99hP3IK9WYyuudfYCnlyd/fkeEqLmiY15626j78XW7g0iY pf7U2trxWM9Yj+iO3bTRdkUIEN6WpMOXTuKAcTxSqQFwVMEI1bcrtFP5TCfR/ZuWOJc76X2NSn tYcMAnMYaOAyTHgc4pjn7H0gN3AcEE6H980g0RKjNJzvPJsfqMTYMdoMbDgVxt3koUzgWThalv xPk=

> 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

  • Follow-Ups:
    • Re: How do I target Junk in Apple Mail?
      • From: Jim Krenz via AppleScript-Users <email@hidden>
References: 
 >How do I target Junk in Apple Mail? (From: Jim Krenz via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: How do I target Junk in Apple Mail?
  • Next by Date: Re: How do I target Junk in Apple Mail?
  • Previous by thread: Re: How do I target Junk in Apple Mail?
  • Next by thread: Re: How do I target Junk in Apple Mail?
  • Index(es):
    • Date
    • Thread