Jump to content

Toggle OSX autocorrect


Recommended Posts

Hi folks, 

 

Although quite useful in itself, sometimes OSX' autocorrect drives me batty, especially in input fields on some apparently badly designed websites when Yggdrasil -- my Macbook -- insists my e-mail address needs a space in it or something like that. Is there any way I can create a workflow to toggle the autocorrect setting? It's in Settings > Keyboard > Text tab > Correct spelling automatically. However, although I've been an Alfred user for a long time, I haven't the foggiest how to go about this, so any pointers would be appreciated. 

 

Thanks!

Link to comment

However, although I've been an Alfred user for a long time, I haven't the foggiest how to go about this, so any pointers would be appreciated.

 

Well, it doesn't really have anything to do with Alfred. It's an OS X question.

 

You can turn Autocorrect on and off from the command line like this:

# Check setting
defaults read -g NSAutomaticSpellingCorrectionEnabled

# Turn autocorrect on
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool true

# Turn autocorrect off
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false

 

Put the relevant command in a Run Script action with Language = /bin/bash then connect it to your Keyword or Hotkey or whatever.

Link to comment
  • 6 months later...

Hi, thanks for sharing this. It is exactly what I need too, however I am unable to get any software react to these changes in settings. I have tried both the Alfred workflow from DB and the Terminal commands. 

 

Any ideas ?  I'm running OSX Sierra 10.12.3.

 

Best regards, Uros

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...