Quantcast
Channel: Hunter Jerusalem Journal
Viewing all articles
Browse latest Browse all 637

Mac Terminal shell script to prevent sleep. Mac presentation mode.

$
0
0
Enter presentation mode via shell script placed in the dock.

  1. Type "caffeinate" and save as plain text file with name "caffeinate.sh".
  2. Set file executable in the Terminal with "chmod a+x drag_here_your_file_caffeinated.sh".
  3. File » Open With… » Other: Terminal.
Open shell script to prevent Mac from sleep. Close Terminal to allow Mac to sleep. Drag the file to the Dock if you like.

Background: Apple provides a Terminal command called "caffeinate". Type "man caffeinate" in the terminal to see the options. Quit man with q key.

Viewing all articles
Browse latest Browse all 637

Trending Articles