leplatdujour Posted August 31, 2016 Posted August 31, 2016 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!
deanishe Posted August 31, 2016 Posted August 31, 2016 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.
leplatdujour Posted August 31, 2016 Author Posted August 31, 2016 Well, thanks to deanishe that turned out to be rather easier than I thought it'd be -- just in case someone else is running into the same thing, here's the workflow I managed to cobble together: https://db.tt/8JZZE12o If you don't find it useful, at least you advanced lot can have a laugh at it
uroscadez Posted March 17, 2017 Posted March 17, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now