Below you will find pages that utilize the taxonomy term “AppleScript”
Articles
Show or Hide Desktop Icons With AppleScript Action in DintAction
When preparing app preview movie for Mac App Store, i prefer hide my desktop icons first, this will give a clean desktop in the movie.
Hide desktop icons with AppleScript Add a new AppleScript action in DintAction, below is the script:
do shell script "defaults write com.apple.finder CreateDesktop false; killall Finder" Show desktop icons back again After the screen recording completed, you can get back desktop icons with this script:
Articles
Turn Off Display With AppleScript Action in DintAction
I’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