The command to install the command line tools is xcode-select -install - this will allow you to use most compilers without having to specify the location of the headers manually. This utility will not harm your Mac because it is based on an official command line tool by Apple. added 2017 As an addendum, if you install the command line tools, then the headers will be placed in /usr/include as well. On a MacBook this only works as long as the lid is open. All current versions of macOS ship with this tool by default. Paraphrased from a handy article on terminal and applescript notifications. The app is a small wrapper around Apples caffeinate command line utility. List of macOS built in sounds to choose from here. With terminal/bash and osascript: osascript -e 'display alert "Alert title" message "Your message text line here."'Īdd a line in bash for playing the sound after the alert line: afplay /System/Library/Sounds/Hero.aiffĪdd same line in AppleScript, letting shell script do the work: do shell script ("afplay /System/Library/Sounds/Hero.aiff") I accidentally installed Java 9, instead of Java 8, so now all my Eclipse projects give me these warnings: Build path specifies execution environment JavaSE-1.8.There are no JREs installed in the workspace that are strictly compatible with this environment. With AppleScript: display alert "Alert title" message "Your message text line here." Im having trouble removing Java 9 from my macOS Sierra system. With terminal/bash and osascript: osascript -e 'display notification "Notification text" with title "Notification Title" subtitle "Notification sub-title" sound name "Submarine"'Īn alert can be displayed instead of a notificationĭoes not take the sub-heading nor the sound tough. With AppleScript: display notification "Notification text" with title "Notification Title" subtitle "Notification sub-title" sound name "Submarine" Adding subtitle, title and a sound to the notification: