Skip to main content
41 votes

Messages app on my Macbook Pro stopped sending to Android

Text messages from your Mac are actually sent through your iPhone. On your iPhone go to the Settings app → Messages → Text Message Forwarding. You may need to re-do the setup by removing and re-adding ...
Harv's user avatar
  • 6,540
35 votes

How can one save a file as plain text in TextEdit?

With TextEdit in focus, select Format → Make Plain Text option in the Menu bar or use the keyboard shortcut Shift + Command + T to change the file encoding to plain text. This will also set the ...
Nimesh Neema's user avatar
  • 52.2k
20 votes
Accepted

Is there a Mac keyboard shortcut to "Select Current Line"?

To select an entire line of editable text, assuming a left justified language... If the insertion point cursor is at the beginning of the line, press: Command–Shift–Right Arrow ⌘⇧➡ If the ...
user3439894's user avatar
18 votes
Accepted

How to turn subpixel antialiasing on in macOS 10.14?

Open the Terminal application Type or paste defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO Press ↩︎ (Enter) Restart the computer To return it back, do the same but instead type in ...
Finesse's user avatar
  • 679
17 votes
Accepted

Can I get word suggestions on Mac like I do on iPhone?

Yes, you certainly can! Just start typing your word and press F5 to reveal up to 20 possible words. To use your example, below is a screenshot showing how this works when I type envir and press the F5 ...
Monomeeth's user avatar
  • 64.7k
16 votes

Is it possible to create a text list of all my apps on the (Mac) App Store?

In systems up to 10.11.6 you can save the "Purchased" page as html file to disk: Quit App Store.app Open Terminal.app in /Applications/Utilities Enter defaults write com.apple.appstore ShowDebugMenu -...
klanomath's user avatar
  • 66.5k
14 votes

Can I get word suggestions on Mac like I do on iPhone?

If you have a Touch Bar, you can enable ‘Touch Bar typing suggestions’. This shows the same 3 options you're used to on iOS on the Touch Bar as you type. This will also show emoji suggestions like iOS....
grg's user avatar
  • 202k
12 votes

Customize Quick Look to allow me to view .yml files

You can use the QLStephen plugin as mentioned but you will need to edit it as described in the project's issue tracker: https://github.com/whomwah/qlstephen/issues/23#issuecomment-21769063 Basically: ...
user6844017's user avatar
12 votes
Accepted

How to use AppleScript to create a new Rich Text Format file from clipboard text?

This answer has been updated to reflect rubik's sphere's misunderstanding between what Rich Text is (what was originally asked about) and what's actually being worked with from Google Chrome, being ...
user3439894's user avatar
12 votes
Accepted

Global convert to uppercase and lowercase in macOS?

You can do it in Safari, but Chrome ignores the standard Mac Toolbox, unfortunately. System Prefs > Keyboard > Shortcuts > App Shortcuts You can set key commands for All Applications, which will ...
Tetsujin's user avatar
  • 116k
11 votes
Accepted

Is it possible to keystroke special characters in AppleScript?

It's possible with CoreGraphics (CGEventPost), it's a C API (it doesn't work in a Cocoa-AppleScript), but it's possible to call an executable from an AppleScript. Here is the method to create the ...
jackjr300's user avatar
  • 2,602
11 votes

How do I extract text from images in terminal?

I did this using Shortcuts on Mac OS, creating the following shortcut: Then executing the shortcut from the command line or a script: shortcuts run "extract_text_from_image" -i input.png -o ...
Todd W's user avatar
  • 211
10 votes

How can I globally disable 'Text Replacement'?

Very late, but defaults write -g WebAutomaticTextReplacementEnabled -bool false Will disable text replacement not just in Safari but in all other apps that use that input method (e.g. Evernote). ...
ArthurClune's user avatar
10 votes

How to force OS X Notes application to lose formatting when I paste text from clipboard?

You can select the text in Notes app, then Format -> Font -> Remove Style. Unfortunately there's no keyboard shortcut for that command :/
KarlV's user avatar
  • 101
10 votes

Is it possible to create a text list of all my apps on the (Mac) App Store?

Both Klanomath and PeterVP provide suitable answers. If all you want is a list of the apps, I'd refer you to those. However, if you'd like other details included (such as Version etc) or you just don'...
Monomeeth's user avatar
  • 64.7k
10 votes
Accepted

Combine multiple txts into one

Globbing isn't random, it's guaranteed to be alphabetical (a.k.a. lexicographic order according to your locale), which is different from numeric sorting order. You can use brace expansion for this. ...
grg's user avatar
  • 202k
9 votes

How to get the selected text into an AppleScript, without copying the text to the clipboard?

Here is a recent blog post that focuses on this very mission: Michael Tsai - Blog - Processing the Selected Text via Script One way to get the currently selected text into an AppleScript, without ...
rubik's sphere's user avatar
9 votes

Is there a simple way to convert a Unicode text file to PDF on the command line on macOS?

The following has been tested on Mac OS 10.12.1. To convert a Unicode text file text.txt to a pdf file text.pdf: textutil -convert html test.txt cupsfilter test.html > test.pdf To specify font: ...
Anders Lundstedt's user avatar
9 votes

Can an AppleScript write to a Notes.app document?

Notes is scriptable, and the dictionary can be opened with Script Editor for details. There's also a lengthy tutorial here. Although I've not tested it with iCloud, you should be able to set the ...
Kent's user avatar
  • 6,212
8 votes

Is there a QuickLook preview for plain-text files with unknown extensions?

You can use QuicklookStephen (https://github.com/whomwah/qlstephen). Install via Brew: brew install qlstephen and then reset the Quicklook plugins: qlmanage -r && killall Finder and you ...
Fabio Cionini's user avatar
8 votes

Customize Quick Look to allow me to view .yml files

Most of these didn't work for me. This did: https://github.com/sbarex/SourceCodeSyntaxHighlight Really excellent, worked immediately, lots of options.
d0g's user avatar
  • 3,982
8 votes

Is it possible to create a text list of all my apps on the (Mac) App Store?

I use a shell script, in Terminal enter: find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print |\sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##' This will ...
PeterVP's user avatar
  • 1,210
7 votes

Is it possible to keystroke special characters in AppleScript?

A workaround (with the clipboard): 1 - You can use a cocoa method from a shell: set tString to "² ³ é ½ ₭" my stringToClipboard(tString) tell application "System Events" to keystroke "v" using ...
jackjr300's user avatar
  • 2,602
6 votes
Accepted

Resources for programming a text based interface in Swift?

It is very common to create such text interface application using the ncurses library. You can use ncurses from Swift programs by importing it: import Darwin.ncurses Then you can follow ordinary ...
jksoegaard's user avatar
  • 78.3k
6 votes

AppleScript: How to extract section from string (based on defined characters)?

You can do it with pure AppleScript, even though the shell script method presented above is very nice: set theText to "I ate an apple at 11:54 pm without the skin." set the_colon_location to offset ...
Christian Boyce's user avatar
6 votes
Accepted

Is it possible to create a text list of all my apps on the (Mac) App Store?

These are great answers but I'll mention the mas command line tool here too because it's a single command for what you want (once you install it) and quite often Apple's App Store app simply doesn't ...
Demian Turner's user avatar
6 votes
Accepted

Applescript text delimiter replace line to /n

Since you didn't actually say what's going wrong when you try to insert \n into your string, I had a little think and then I remembered that there's a setting in Script Editor: So, if I'm guessing ...
CJK's user avatar
  • 5,532
6 votes

How can one save a file as plain text in TextEdit?

In the Text Edit preferences, you can choose to default to plain text if you don't like the shipping setting of RTF. Also, this can be saved per document so you can clean things up to encode and save ...
Tetsujin's user avatar
  • 116k
6 votes
Accepted

Add text to a line in OmniGraffle

Option + Double-click Hold Option/ALT while double-clicking on the line to add a label to it. If this maneuver instead creates a point to adjust the line from, double-click without Option/ALT. You ...
grg's user avatar
  • 202k
6 votes
Accepted

How do I extract text from images in terminal?

In terminal: brew install tesseract <- this installs the program you need (I assume that you have brew installed, if not, go to this website: https://brew.sh/). For one image you do this: tesseract ...
Pavel Orekhov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible