I’m trying to open the “Profiles” section of the Terminal settings (image).
Here is my script:
tell application "Terminal"
activate
delay 1
tell application "System Events"
keystroke "," using command down
delay 1
tell process "Terminal"
click menu item "Profils" of menu "Terminal" of menu bar item "Terminal" of menu bar 1
end tell
end tell
end tell
But the script only opens the settings window, and not the section I want.