0

I want to type in Spotlight commands such as shutdown, reboot, suspend or lock and make it execute it, just like Alfred does.

How to make this possible with Spotlight?

Thecafremo
  • 13,617
  • 3
  • 45
  • 48
xgdgsc
  • 721
  • 2
  • 9
  • 17
  • So the answer is not possible with spotlight itself? I don' t want to install alfred. – xgdgsc Oct 31 '13 at 10:53
  • You could save scripts for the commands as applications in AppleScript Editor. For example use tell application "System Events" to shut down to shut down, tell application "loginwindow" to «event aevtrlgo» to log out, or do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend" to lock the screen. – Lri Oct 31 '13 at 11:52
  • Are you opposed to using the built in keyboard shortcuts? – Mr Rabbit Oct 31 '13 at 11:55

0 Answers0