Mac OS X’s Services menu (Terminal → Services) exposes a collection of services that can work with the currently running application. In the case of the Terminal, the services operate on text that you have selected (the pasteboard). To use a service, select a region of text in the Terminal, and choose an operation from the Services menu. Mac OS X comes with several services, but third-party applications may install services of their own. When you use a service that requires a filename, you should select a fully qualified pathname, not just the filename, because the service does not know the shell’s current working directory. (As far as the service is concerned, you are invoking it upon a string of text.) Here is a list of options available in the Services menu:
- Finder
The Finder Services menu allows you to open a file (Finder → Open), show its enclosing directory (Finder → Reveal), or show its information (Finder → Show Info).
The Mail → Send To service allows you to compose a new message to an email address, once you have selected that address in the Terminal. You can also select a region of text and choose Mail → Send Selection to send a message containing the selected text.
- Make New Sticky Note
This service creates a new Sticky (
/Applications/Stickies
) containing the selected text.- Open URL
This service opens the URL specified by the selected text in your default web browser.
- Script Editor
This service gets the result of an AppleScript, makes a new AppleScript (in the Script Editor), or runs the selected text as an AppleScript.
- Search with Google
This service searches for the selected text using
google.com
in your default web browser.- Send File to Bluetooth Device
This service sends the file specified by the selected text to a Bluetooth device.
- Speech
The Speech service is used to start speaking the selected text. (Use Speech → Stop Speaking to interrupt.)
- Summarize
This service condenses the selected text into a summary document. The summary service analyzes English text and makes it as small as possible while retaining the original meaning.
- TextEdit
The TextEdit service can open a filename, or open a new file containing the selected text.
- View in JavaBrowser
This service browses Java documentation for the selected class name. This is available whether the selected text is a real Java class name or not. (Garbage In, Garbage Out applies here.)
Get Mac OS X Panther for Unix Geeks, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.