Information Technology Reference
In-Depth Information
Using
TERMINAL-NOTIFIER
is easy. Just use the
-MESSAGE
command option to specify
the message, which should appear within quotation marks (or be escaped in
the usual way), and use the
-TITLE
option to specify the title of the notification
dialog. Here's an example:
TERMINAL-NOTIFIER -MESSAGE "MAC KUNG FU GOES PLACES OTHER TOPICS DON'T DARE"
-TITLE "MAC KUNG FU"
You can also specify things to happen when the notification dialog is clicked:
using
-OPEN
, you can specify a URL (which must include its http:// component),
for example. You can find more information at the GitHub site for
TERMINAL-
NOTIFIER
.
6
Tip 72
Stop the Dock from Getting Broken
It's very easy to accidentally resize the Dock when using a Mac or delete icons
from it. All it takes is a misclick of the mouse. The following two commands
typed into a Terminal window will “freeze” the Dock, making it impossible to
resize it or to remove/rearrange/add icons:
DEFAULTS WRITE COM.APPLE.DOCK SIZE-IMMUTABLE -BOOL TRUE
DEFAULTS WRITE COM.APPLE.DOCK CONTENTS-IMMUTABLE -BOOL TRUE;KILLALL DOCK
To “unfreeze” the Dock so you can resize it and add/remove/rearrange icons,
issue the following two commands in a Terminal window:
DEFAULTS DELETE COM.APPLE.DOCK SIZE-IMMUTABLE
DEFAULTS DELETE COM.APPLE.DOCK CONTENTS-IMMUTABLE;KILLALL DOCK
Tip 73
Control QuickTime Player Using Keys
The following keyboard shortcuts let you control QuickTime Player without
touching the mouse:
6.