For anyone wishing to interact with UI elements in Logic Pro, you may like to try this macro. Logic notoriously has no AppleScript library and elements tend to change their position within a UI element tree. As such, Swift can be a lot more reliable than AppleScript. This macro will allow you to target elements for interaction via Swift.