如何使用Spotlight运行Shell脚本? [英] How to run a shell script using Spotlight?
本文介绍了如何使用Spotlight运行Shell脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在Mac OS X 10.6上使用Spotlight运行Shell脚本?我希望能够在不打开终端的情况下直接从Spotlight调用Shell脚本.
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.
推荐答案
使用.command
后缀保存您的shell脚本-这使其可以双击,并且您也应该能够直接从Spotlight运行它.
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.
这篇关于如何使用Spotlight运行Shell脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文