MacTips-MacTalk
Excerpt from the book MacTalk·Life Meta-Programming. Some content (e.g., keyboard shortcuts) may be outdated; please use your own judgment.
MacTips Quick Reference (Table of Contents)
- Speaking English in Terminal
- Opening Applications Quickly with Spotlight
- Using Spotlight Annotations to Locate Files
- Batch Processing Images with the
sipsCommand - Opening Email Directly with Command+I
- Automatically Emptying Trash with Shift+Command+Delete
- Using
du -sh *to Check Directory Space - English Auto-Completion
- File Operations
- Showing Hidden Files
- Using Your Hot Corners
- Maintaining Your Mac
- Closing Windows by Application Group and Preventing Window Overlap
- Screenshotting
- Recommended Useful Tools
- Mac’s Native Input Method
- Safari Tabs
- Monitoring Mac Performance
- Batch Copying Files
- Application Switching
- Remote Copying
- FTP in OS X
- Backing Up
- Inode and History
- Go2Shell
- Safari’s Reader
- Remote Desktop Connection for Mac
- Document Version Control
- Quickly Sending Emails with Attachments
- Quickly Creating Notes
- Mac’s Universal Keyboard Shortcuts
“32. Terminal Commandopen - CatchMouse: Custom Keyboard Shortcuts
- Activating Windows
- File Inspector
- Screen Magnifier
- Voice Recognition
timeCommand- Typing Special Characters
- OS X Three-Finger Tap Search Function”
- F.lux: Adjusting Screen Color Temperature
- Using
pmset noidleto Prevent Mac from Sleeping - Network Sharing
- Quick Look
- Showing Desktop
- Installing and Uninstalling Applications
- Disk Images
- Copying a List of Filenames from a Directory
- Multi-Touch Gestures
- OS X Preview Application
- Keyboard Shortcut to Show/Hide Desktop Contents
- Holding Option Key for Shortcuts
- Space (Spaces)
- Hiding Applications
- Using File Color Labels
- Creating Calendar Events from Email Dates
- Small AppleScript Programs
- Homebrew
- Quickly Finding Files by Filename
- Setting User Login Options
- Customizing Your Login Window
- Mac Keyboard
- QuickTime
- Quickly Importing iPhone/iPad Photos to Mac via Dropbox
- Quickly Creating Calendar Events
- Graphics Card Monitoring Software: gfxCardStatus
- Creating Smart Folders
- Automatically Opening Previously Opened Documents
- Smart Mailboxes
- Hidden VIP Feature
- Opening All Subfolders of a Folder in Finder
- Slow Animation
- XtraFinder Plugin
- Charging iPhone While MacBook is in Sleep Mode
- Recovering Damaged Screenshot Images
- Adding Chinese Dictionary to OS X’s Built-in Dictionary
- File Sharing
- Deleting Applications
- Command+Up/Down Arrow Keys
- Reading and Note-Taking Apps on Mac
- Checking Power Status
- Pixelmator
- Search Command
mdfind - Metadata Command
mdls - Function Keys
- Command
filefor Viewing File Information - Configuring Multiple Network Environments
- Generating PDFs from Man Pages
- Virtual Machines
- Enabling the Root User
- Hidden Space Switching Feature
- Free Text Editor: Imagine
- Removing Duplicates from Right-Click Menu
- Setting Mouse and Trackpad Scrolling Directions Independently
- Making Non-Retina Mac Apps Retina-Compatible
- File Comparison
- FTP Tool: Cyberduck
- File Renaming
- Multiple Users Logging into One Application
- Force Quitting Applications
- Opening Multiple Instances of an Application via AppleScript
- Automator
- Using Safari’s Default Search Engine to Search Text in Applications
- Rotating Screen
- keycastr: Displaying Keyboard Shortcuts During Video Recording
- Copying Screenshot to Clipboard
- CheatSheet
- HTML5Player
- Rebuilding Spotlight Index
- Using Keyboard to Operate Dock and Menu Bar
- Defining Your Own Keyboard Shortcuts
- Selecting Text
- Folders in Dock
- Finder’s Width
- Dashboard
- Tips for Using Dock Folders
- Introducing a Few Simple Commands
- The Magical Option Key
- Audio Processing Software: XLD
- Protecting Your Data Files
- Disabling Notifications
- Finder Toolbar
- Spotlight Search with Command+* to Locate File’s Folder
- Restarting Finder Shortcut
- Picture-in-Picture Screen Zoom
- Pasting Plain Text
- Terminal Command
lsof - Wired File Transfer via AirDrop
- Previewing Applications During Switching
- Advanced Spotlight Search Techniques
MacTips Main Content
1. Speaking English in Terminal
When speaking English, we naturally expect standard pronunciation. On Mac, you don’t need a dictionary—just type say yes in the Terminal, and your Mac will say “yes” in English.
2. Opening Applications Quickly with Spotlight
Many new Mac users know Spotlight’s search function. In fact, you can also use it to open applications quickly. Press Ctrl+Space to open Spotlight, then type “Contacts” or “cont” to find the Contacts app, and press Enter to launch it.
3. Using Spotlight Annotations to Locate Files
OS X’s file system supports Spotlight annotations, helping users locate files more precisely. Select a file or folder, press Command+I to open its Info window, and add your own keywords in the Spotlight Annotations field. After closing the Info window, open Spotlight and type the keyword to locate the file or folder accurately.
4. Batch Processing Images with the sips Command
If you want to batch edit a group of images (resizing, rotating, flipping, etc.) but don’t know or don’t have Photoshop, you can use the sips command efficiently. For example:
# Resize all JPG images in the current user's Pictures folder to 800px width, height scaled proportionally
sips -Z 800 ~/Pictures/*.JPG
# Rotate 90° clockwise
sips -r 90 ~/Pictures/*.JPG
# Flip vertically
sips -f vertical ~/Pictures/*.JPG
More commands can be viewed with sips -h.
5. Opening Email Directly with Command+I
While browsing a webpage in Safari, if you want to send the current page via email, press Command+I to open Mail with the current page attached.
6. Automatically Emptying Trash with Shift+Command+Delete
To quickly delete files and empty the Trash: In Finder, select the file and press Command+Delete to move it to Trash. To permanently delete it, press Shift+Command+Delete to automatically empty the Trash.
7. Using du -sh * to Check Directory Space
To see how much space each file and subdirectory occupies in a directory on Mac, you don’t need to check each one individually. Open Terminal and navigate to the directory, then type du -sh * for a clear overview.
8. English Auto-Completion
When using system apps like TextEdit, Pages, or Keynote, typing an English word and pressing Esc will auto-complete it. For example, typing “brill” and pressing Esc will prompt suggestions for “brilliance.” If Esc cancels input in some apps (e.g., Safari search bar), use Fn+F5 instead. This is very helpful for frequent English writers.
9. File Operations
In Finder, open a file by double-clicking or pressing Command+O. Unlike Windows, pressing Enter while selecting a file renames it, not opens it.
10. Showing Hidden Files
In Terminal, type ls -a to show hidden files in the current directory. In Finder, press Shift+Command+.` to show hidden files. To hide them again, press the same shortcut once more.
11. Using Your Hot Corners
OS X provides powerful Mission Control features. Today’s tip: Hot Corners. Open System Preferences → Mission Control → Hot Corners to configure the four corners of your screen. For example, set the top-left corner to put the display to sleep. When you leave your computer, just move the mouse to the top-left corner to turn off the screen—very convenient.
12. Maintaining Your Mac
OS X is a simple operating system. You generally don’t need antivirus software, and most
Article Title: MacTips-MacTalk
Author:
Published: January 1, 2015
Copyright: This article is licensed under CC BY-NC-SA 4.0 . Please keep attribution when reusing.
Comments