You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some research, it seems it might not be possible to do this easily to other applications. For an application we own, it's trivial (https://stackoverflow.com/a/12233351/5552584) but there doesn't seem to be any way to get an NSWindow reference of another application.
We can probably automate this via the accessibility API, here's a proof of concept applescript:
tellapplication"Dock"toactivatetellapplication"System Events"tell process "Dock"setfrontmosttotrueactivatetelllist1
perform action "AXShowMenu"of UI element "<APP_NAME>"keystroke"Options"keystrokereturnkeystroke"All Desktops"keystrokereturnend tellend tellend tell
I wonder if there are any alternative ways of doing this (maybe modifying some system plists? com.apple.dock?).
Haven't looked into it - not sure if it's possible. It would be nice if the activated apps were available on every space.
Meaning, automating:
Options
All Desktops
Or something which provides the same functionality.
The text was updated successfully, but these errors were encountered: