Last active
March 27, 2022 17:02
-
-
Save larryaasen/b04f445dbfe28a32f08bf5418133e949 to your computer and use it in GitHub Desktop.
Open the Camera Settings app from Logitech, and update the camera settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Open the Camera Settings app from Logitech. Update the camera settings. | |
-- This AppleScript was tested and used on the Logitech HD Pro Webcam C920. | |
launch application "Camera Settings" | |
activate application "Camera Settings" | |
tell application "Camera Settings" | |
tell application "System Events" | |
click button "Home" of window "Logitech Camera Settings" of application process "Camera Settings" | |
click button "Widescreen" of window "Logitech Camera Settings" of application process "Camera Settings" | |
click button "NTSC 60Hz" of window "Logitech Camera Settings" of application process "Camera Settings" | |
-- slider 0: Zoom in/out slider, 0=out, 500=in | |
set value of slider 0 of window 1 of application process "Camera Settings" to 0 | |
click button "Advanced" of window "Logitech Camera Settings" of application process "Camera Settings" | |
-- slider 0: Color intensity 129=50%, 90=35%, 102=40%, 115=45% | |
set value of slider 0 of window 1 of application process "Camera Settings" to 129 | |
-- slider 2: Contrast=128 | |
set value of slider 2 of window 1 of application process "Camera Settings" to 128 | |
-- slider 3: Brightness=130 | |
set value of slider 3 of window 1 of application process "Camera Settings" to 130 | |
-- slider 4: Auto white balance=5069 (68.2%) | |
set value of slider 4 of window 1 of application process "Camera Settings" to 5069 | |
-- slider 5: Auto focus=0 | |
set value of slider 5 of window 1 of application process "Camera Settings" to 0 | |
-- slider 6: Auto focus enabled=1 | |
set value of slider 6 of window 1 of application process "Camera Settings" to 1 | |
-- slider 7: Auto white balance enabled=0 | |
set value of slider 7 of window 1 of application process "Camera Settings" to 0 | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment