tell application "System Events"
tell (first application process whose bundle identifier is "com.figure53.QLab.5")
tell (first group of splitter group 1 of window 1 whose description is "cue inspector")
try
tell (first button whose description is "mode") to click
end try
tell (buttons whose type is "toggle button") to set theNames to (get title as list)
set defValue to (get name)
end tell
end tell
end tell
The DefValue variable gives a "missig vlaue" answer. Hmm
——————————————————tell application "System Events" to tell (first application process whose bundle identifier is "com.figure53.QLab.5")
set allElements to UI elements of window 1
set allInfo to {}
set i to 0
repeat until i = (count allElements)
set eachElement to item (i + 1) of allElements
set end of allInfo to properties of eachElement
try
set allElements to allElements & UI elements of eachElement
end try
set i to i + 1
end repeat
end tell
allInfo
-- Assuming you have navigated to the Mode tab of the Inspector…
tell application "System Events"
tell (first application process whose bundle identifier is "com.figure53.QLab.5")
tell group 1 of splitter group 1 of window 1
set allClasses to class of (UI elements whose role description is "toggle button")
set allNames to name of (UI elements whose role description is "toggle button")
set allValues to value of (UI elements whose role description is "toggle button")
end tell
end tell
end tell
log allClasses
log allNames
log allValues