-
Right click the file and choose information and choose to always open this file with
Terminal.app
-
Go to the
Terminal.app
and do something like thischmod 744 Reset Spotlight.sh
-
There you go, you can now double click it so reset the Spotlight location
-
Optional: Uncomment line for the
useCount
to prevent Spotlight to forget that you already used it
-
-
Save einfallstoll/d2fcf8362e4cd4758035 to your computer and use it in GitHub Desktop.
#!/bin/sh | |
# Delete all information saved by Spotlight | |
defaults delete com.apple.Spotlight | |
# Restart Spotlight | |
killall Spotlight | |
# Uncomment to prevent Spotlight to always introduce itself as new | |
# defaults write com.apple.Spotlight useCount 5 | |
exit 0 |
This one line command does the trick w/out restarting Spotlight and erasing all your settings (tested on OS X 10.11 GM):
defaults delete com.apple.Spotlight userHasMovedWindow
If you moved AND resized the Spotlight window, you will need to delete another parameter, and restart Spotlight:
defaults delete com.apple.Spotlight userHasMovedWindow;defaults delete com.apple.Spotlight windowHeight;killAll Spotlight
Thank you for this! I just ran into this exact situation and it was a big help to run across this gist.
Just hold down on the Spotlight icon in the menu bar and the position of the window will reset to its default location after 2 seconds.
Wow! @superpixel, that's awesome.
You can just move it with your cursor…
Thank you @einfallstoll for writing this, and @YuriEnrico for noticing you can move it with the cursor (given the lack of visual affordances, I'd never think it would me movable) 😄
Wow! It was really helpful! Thanks a lot! <3
This is working wonderfully as of 14.4.1 (23E224)
:)
I would suggest:
This will only remove the window position settings, while preserving the other settings.