Applescript to run Darkroom since no shortcut?

  • Does anybody have an Applescript they're willing to share that can enable dark room? I'd like to create a Hazel rule that automatically runs the Applescript at a certain time so that my screen automatically enters Darkroom mode at night.

  • @boddicker This is quite slow but appears to work:

    -- toggle flux darkroom mode
    tell application "System Events" to tell process "Flux"
    tell menu bar item 1 of menu bar 1
    click menu item "Color Effects" of menu 1
    tell menu item "Color Effects" of menu 1
    click menu item "Darkroom" of menu 1
    end tell
    end tell
    end tell

Log in to reply