Hi,
I’m hoping that there’s some way to write this so that it’s a single script.
This is working:
tell application "System Events"
tell process "Logic Pro"
get value of (every checkbox whose description is "bypass") of (every group whose value of attribute "AXDescription" does not contain "Loudness") of (first UI element whose value of attribute "AXDescription" contains "SUB MASTER") of UI element 2 of group 1 of (first window whose value of attribute "AXTitle" contains " - Mixer: All")
end tell
end tell
But I’d like to search for 2 possible groups like this (this is not working with error:
"error "System Events got an error: Illegal comparison or logical." number -1726 from "automation" to record"
):
tell application "System Events"
tell process "Logic Pro"
get value of (every checkbox whose description is "bypass") of (every group whose value of attribute "AXDescription" does not contain "Loudness" or "automation") of (first UI element whose value of attribute "AXDescription" contains "SUB MASTER") of UI element 2 of group 1 of (first window whose value of attribute "AXTitle" contains " - Mixer: All")
end tell
end tell
– Groups with a description that do not contain either “Loudness” OR “automation” - can be either.
Is there a syntax that will work this way in AppleScript?
Thanks!