HomeAppleSwitching to the primary tab in Mail utilizing Applescript or Shell

Switching to the primary tab in Mail utilizing Applescript or Shell


I’m in search of a technique to change to the primary tab in a Mail window. It looks as if there isn’t a common technique to deal with tabs in macOS programmatically. I’ve tried Apple scripting with and with out utilizing "System Occasions", however with no luck. And most scripts on the web are concerning Safari.

These don’t work:

inform utility "System Occasions" to inform course of "Mail" to inform window 1 to inform radio button 1 to click on
inform window 1 of utility "Mail" to set present tab to tab 1

It looks as if Mail handles the tabs as in the event that they had been home windows. However this doesn’t assist for the reason that indexes of the home windows/tabs shuffle round relying on how they’re arrange, whichever tab was chosen final and many others., and I all the time need to deal with tab #1 unbiased of the window index quantity and title/contents.

Switching to the primary tab in Mail utilizing Applescript or Shell

I’ve traversed the Applescript Dictionary however can’t discover something appropriate. Any hints can be appreciated. It could even be good to know if it may be solved utilizing Shell since I’m going to make use of it for a Keyboard Maestro motion.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments