How can I use a bash script as a Service in OS X without having to set it up trough automator? I'd basically like to write a bash script, save it in ~/Library/Services and then just have it show up in the services menu. Thoughts?
|
feedback
|
|
ThisService is a bit more streamlined than Automator:
The built-in script menu can also be used to run shell scripts:
It can be enabled from AppleScript Utility — Preferences — Show Script menu in menu bar. It includes files in ~/Library/Scripts/ and optionally /Library/Scripts/. You can't assign shortcuts though — that's the main reason to use FastScripts instead. Some applictions for just assigning shortcuts: osx - Bind a key to a commandline command in Mac OS X? - Super User. | |||||
feedback
|
|
I don't know of a way to do that directly. Aside from Automator, you can also use XCode to build an AppleScript wrapper for your script that will work as a Service. Using the script directly is more problematic. My understanding is that it needs to be an app bundle, and then it needs specific entries in its This leaves the rather big question of how to invoke it; the Objective-C message created from | |||
|
feedback
|
|
You should consider trying FastScripts. It's like OS X's scripts menu done right, including keyboard shortcuts for easy access. | |||
|
feedback
|


mactag is for questions about Mac hardware. While theosxtag is for software. Choose one or the other. – Wuffers Apr 5 '11 at 0:32