Skip to content

Instantly share code, notes, and snippets.

@ikarino
Created January 17, 2015 13:00
Show Gist options
  • Save ikarino/59584655f0efd0b2dedc to your computer and use it in GitHub Desktop.
Save ikarino/59584655f0efd0b2dedc to your computer and use it in GitHub Desktop.
on selectSettingTab(index)
tell application "System Events"
tell process "OBS"
tell window "Settings"
activate
set p to position
set x to (item 1 of p) + 100
set y to (item 2 of p) + 20 + index * 50
set cmd to "cliclick c:" & x as string & "," & y as string
-- display dialog cmd
do shell script cmd
end tell
end tell
end tell
end selectSettingTab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment