From: David Gregg <
email@hidden>
Date: Wed, Mar 29, 2017 at 5:19 PM
To: JMichael <
email@hidden>
Cc: "ASUL (AppleScript)" <
email@hidden>
Subject: Re: Looking for Scripts, Snippets, Ideas for Toggling Windows and Tabs of an App
Jim,
I believe this will handle the window toggling.
tell application "System Events"
set frontmostApp to name of first item of (processes whose frontmost is true)
tell process frontmostApp
set value of attribute "AXMain" of window 2 to true
end tell
end tell
David