Here’s a clever way to increase the functionality of Spotlight in Yosemite. Sam Soffes and Louie Mantia wrote 7 simple applications: Screen Saver, Empty Trash, Lock, Log Out, Sleep, Restart, and Shut Down. You drop the apps into your Applications folder and then you can “launch” them via Spotlight.
Most of you (all of you?) probably know that these sorts of actions work out right of the box with LaunchBar and Alfred. But Yosemite brought many cool new features to Spotlight that make it a more compelling quick launcher than it was in previous versions of OS X.