applescript – Enabling HDR on macOS ventura utilizing an apple script

on

|

views

and

comments


I’ve a macbook m1 max with mac os ventura and my HDR at all times randomly turns off when my laptop wakes up from sleep.

I’ve to enter the menu and discover the displays and allow the hdr slider.

I’m making an attempt to write down an apple script that may allow HDR on the exterior displays with out affecting my inside retina monitor. The inner display screen can solely allow or disable tru tones not hdr.

Here’s what I’ve to date however I hold operating into an finish of line error.

inform software "System Preferences"
    activate
    reveal anchor "displaysDisplayTab" of pane id "com.apple.choice.shows"
    inform anchor "displaysDisplayTab" of pane id "com.apple.choice.shows"
        inform desk 1 of scroll space 1
            choose (row whose worth of static textual content 1 comprises "DELL S3422DWG")
        finish inform
        inform desk 1 of scroll space 1
            choose (row whose worth of static textual content 1 comprises "DELL S2721DGF")
        finish inform
        click on checkbox "Excessive Dynamic Vary" of group 1
    finish inform
    stop
finish inform

Then I additionally tried to do it one other means like this,

inform software "System Settings"
    activate
    set present pane to pane id "com.apple.choice.shows"
finish inform


inform software "System Occasions"
    inform course of "System Preferences"
        set frontmost to true
        repeat till exists window "Shows"
        finish repeat
        inform scroll space 1 of group 1 of window "Shows"
            click on checkbox "Excessive Dynamic Vary"
        finish inform
    finish inform
finish inform

inform software "System Settings"
    stop
finish inform

However the system preferences app opens up on the looks tab and I get thrown an error error "System Settings acquired an error: AppleEvent handler failed." quantity -10000.

I simply began utilizing apple script and I’m not actually certain what I’m doing. Any assist can be tremendously appreciated. Thanks!

Share this
Tags

Must-read

I used to be cautious of driverless automobiles and their tech overlords – however they might give me a special future | Gabriel Stewart

The robotaxis are coming! The robotaxis are coming! Properly, truly, they’re already right here. Till now they’ve been the stuff of science fiction,...

From Automation to Bodily AI: The Technical Vacation spot Freight Has Been Constructing Towards

For many years, the trucking trade has chased the identical objective—transfer extra freight, extra reliably, at decrease price, safely—driving successive waves of funding...

Torc’s Mission Intersects With Occasion Traits of Bodily, Multi-Modal AI, Deployable Methods

Advancing the Way forward for Autonomous Driving CVPR 2026 marked its largest version so far, bringing collectively greater than 10,000 attendees and setting a...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here