Turn Off Display With AppleScript Action in DintAction
- 1 minutes read - 109 wordsI’m currently using external monitor connected to my Mac Mini, sometimes i want to turn off the display without touch the power button, i prefer to use AppleScript to do the job.
With DintAction, this job can be done quickly.
Turn off display with AppleScript
First, add a new action with AppleScript template, and enter the following AppleScript code:
do shell script "/usr/bin/pmset displaysleepnow"
Set description of an action is optional; when description is available, text contains in description will also list the action in search results
When an action selected in search results, you can just perform the AppleScript of the action by clicking it or press Enter.