MacOS/Cheatsheet

From braindump
Jump to navigation Jump to search

Screenshots

Save to Desktop

Take a screenshot of the screen, and save it as a file on the desktop

Command-Shift-3 

Take a screenshot of an area and save it as a file on the desktop

Command-Shift-4 & select area

Take a screenshot of a window and save it as a file on the desktop

Command-Shift-4 & then space & click on window

Save to Clipboard

Take a screenshot of the screen, and save it to the clipboard

Command-Control-Shift-3 

Take a screenshot of an area and save it to the clipboard

Command-Control-Shift-4 & select area

Take a screenshot of a window and save it to the clipboard

Command-Control-Shift-4 & space & click on window

In Leopard and later, the following keys can be held down while selecting an area (via Command-Shift-4 or Command-Control-Shift-4): To lock the size of the selected region and instead move it when the mouse moves press

Space 

To resize only one edge of the selected region press

Shift

To resize the selected region with its center as the anchor point press

Option

WLAN

There is an airport command line utility hidden far far away in some distant directory. Creating a symlink to /usr/sbin will make it handy for debugging WLAN issues.

ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
airport -h # check the options

Command Line

Find the Mac OS X version on the command line.

sw_vers     
ProductName:	Mac OS X
ProductVersion:	10.6.8
BuildVersion:	10K549

For Scripting also with arguments

sw_vers -productVersion
10.6.8

References