tell application id "com.figure53.QLab.4"
set workspacename to the (q number of the front document)
set main to the uniqueID of window (workspacename & " — Main Cue List")
set dashboard to the uniqueID of window (workspacename & " — Light Dashboard")
set frontwindow to the uniqueID of front window
if main is frontwindow then
set index of window id dashboard to 1
set index of window id main to 2
set visible of window id dashboard to false
set visible of window id dashboard to true
end if
back to main:
tell application id "com.figure53.QLab.4"
set workspacename to the (q number of the front document)
set main to the uniqueID of window (workspacename & " — Main Cue List")
set dashboard to the uniqueID of window (workspacename & " — Light Dashboard")
set frontwindow to the uniqueID of front window
if dashboard is frontwindow then
set index of window id main to 1
set index of window id dashboard to 2
set visible of window id main to false
set visible of window id main to true
end if
end tell
end tell
It's a bit of a car crash but may be a starting point.
Mic