How to run a shell script using Spotlight?

theactiveactor picture theactiveactor · May 20, 2010 · Viewed 12.6k times · Source

Is there a way to run a shell script using Spotlight on Mac OS X 10.6? I would like to be able to invoke a shell script directly from Spotlight without opening up a terminal.

Answer

Paul R picture Paul R · May 20, 2010

Save your shell script with a .command suffix - this makes it double-clickable and you should also be able to run it directly from Spotlight too.