I have UI browser and am trying to figure out how to script the VLC preferences pane I’m able to get to the preferences pane, but I’m just not getting how to select items on the preferences dialog. Here’s what I have so far, but it fails on trying to click a button. What I actually want to do is deselect the checkbox for “Blank Screens in Fullscreen Mode”. Trying to sneak up on how to work with Preferences.
use AppleScript version "2.4" -- Yosemite (10.10) or later use scripting additions on run activate application "VLC" tell application "System Events" tell process "VLC" click menu item "Preferences..." of menu 1 of menu bar item "VLC" of menu bar 1 tell toolbar of window 1 click button 2 end tell end tell end tell end run