Terminal Commands

Every time I need to reinstall my Mac, which has happened more often than I would have guessed, there are certain terminal commands I need to look up.

Open new document when launching TextEdit

TextEdit is a great text editor for jotting down quick bits of text (until they make Drafts for macOS). To start this behavior.

defaults write com.apple.TextEdit NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false

To revert to the default behavior of opening with a window asking which file to open, type this into terminal.

defaults delete com.apple.TextEdit NSShowAppCentricOpenPanelInsteadOfUntitledFile

Save as PDF with ⌘P

This is great for quickly turning something into a PDF by pressing ⌘P twice in rapid succession. Thanks to MacSparky for the tip. He even made a video of the process.

In System Preferences, select Keyboard and then Shortcuts. Select “App Shortcuts” from the side panel and click the “+” to add one to All Applications. Screen Shot 2017-03-11 at 1.56.17 PM.png

Then type “Save as PDF…” using not three periods but an ellipse (option + semi-colon) in the Menu Title box. Press command-P in the Keyboard Shortcut box, click Add and you’re done.

Screen Shot 2017-03-11 at 1.57.10 PM.png

And now in any application in which you can print, if you press ⌘P twice in rapid succession you get a Save as PDF… dialog box.


Terminal Commands

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s