How to run a shell script using Spotlight?
问题 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. 回答1: 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. 回答2: I would also like to add, if you need the terminal window to disappear after running the command, you can set the terminal settings to do just that. It's under