• 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 use if/then with this Apple Mail script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I use if/then with this Apple Mail script?


  • Subject: How do I use if/then with this Apple Mail script?
  • From: Jim Krenz via AppleScript-Users <email@hidden>
  • Date: Sat, 11 Jan 2020 15:26:24 -0800

Hello all,

I have made this simple script to go to a specified Mail inbox:

tell application "Mail"
        set selected mailboxes of message viewer 1 to mailbox "INBOX" of
account “Nostravinci"
end tell

What I want to create, is a script that will go to my first inbox, and when
triggered again, go to my second mailbox, and so on.

I think this can be accomplished with if/then, but if/then mystifies me.

Does anyone have any advice or examples that would help me?

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 use if/then with this Apple Mail script?
      • From: Takaaki Naganoya via AppleScript-Users <email@hidden>
    • Re: How do I use if/then with this Apple Mail script?
      • From: Andrew Oliver via AppleScript-Users <email@hidden>
  • Prev by Date: Re: Christopher Stone ?
  • Next by Date: Re: How do I use if/then with this Apple Mail script?
  • Previous by thread: Re: Christopher Stone ?
  • Next by thread: Re: How do I use if/then with this Apple Mail script?
  • Index(es):
    • Date
    • Thread