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

How do I target Junk in Apple Mail?


  • Subject: How do I target Junk in Apple Mail?
  • From: Jim Krenz via AppleScript-Users <email@hidden>
  • Date: Wed, 15 Apr 2020 10:33:21 -0700

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?

Thanks!

Jim
 _______________________________________________
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: Axel Lüttgens via AppleScript-Users <email@hidden>
    • Re: How do I target Junk in Apple Mail?
      • From: Yvan KOENIG via AppleScript-Users <email@hidden>
  • Prev by Date: Re: Scripting a Find in Contacts
  • Next by Date: Re: How do I target Junk in Apple Mail?
  • Previous by thread: Re: Scripting a Find in Contacts
  • Next by thread: Re: How do I target Junk in Apple Mail?
  • Index(es):
    • Date
    • Thread