SimpleService

SimpleService is a little program which shows to to create services for the services menu.  There are two services provided in this example:

• "Open File" service, which opens the file specified by the provided string. This service has no return value.

• "Capitalize" service, which takes a string and returns a capitalized version.

The service information is stored in Info.plist and read by the system during login. Take a look at the "Application Settings" to see how the service information is specified. Details on the various entries can be found in the  documentation, in "Services" under "Programming Topics."

To install SimpleService, copy it into ~/Library/Services, log out and log back in.

There are some tricky issues in creating a service:
• The Info.plist needs to specify LSBackgroundOnly = 1, in order to assure the service does not appear in the dock.