im starting to make a version of enhanced dock for alt tab (application switcher). currently i can identify is alt tab visible with
tell application "System Events" to tell process "Dock" to try
if subrole of list 2 is "AXProcessSwitcherList" then return true
i can identify other ones with
tell application "System Events" to tell process "Dock"
if (UI elements count) > 1 then
return name of group "Mission Control"
return name of group "App Expose"
return name of group "Launchpad"
return "App Switcher"
im sure a variable for these would be useful
missioncontrol_active (currently returns true on Application Switcher and Application Expose)
I don't think there is a way to know whether app expose is active, as it triggers the same effects as mission control. Unfortunately I'm not aware of any way to differentiate between mission control and app expose ;-(
Same goes for Launchpad and app switcher - maybe there is a way to identify them via the visible window list variable