Double-click Create Action in the Desktop_Apps application group.
This displays the main Create Action window.
Type the name that will label the action icon into the Action Name text field.
Use the Action Icons controls to specify the icon for the application. Initially, the default icon is shown.
To choose a different, existing icon, click Find Set to display the Find Set dialog box. See "Using the Find Set Dialog Box To Specify an Icon".
To create new icons, choose Edit Icon to run the Icon Editor.
In the Command When Action Icon Is Opened text field, type the command to start the application.
Use the syntax $n for a file argument; for example:
emacs bitmap $1 diff $1 $2 lp -oraw $1
If the command line includes a file argument ($n), then the action icon will be a drop zone for files.
The command lines are not passed to a shell unless you explicitly specify the use of a shell. For example, these lines use shell processing:
/bin/sh -c 'ps | lp' /bin/sh -c 'spell $1 | more'
Type the On Item help text for the action icon into the Help Text For Action Icon text field.
The text will automatically wrap in the text field. However, these line breaks are not preserved online. If you want to specify a hard line break, use \n.
Choose the windowing support required by the action from the Window Type option menu.
Graphical (X-Window)--the application creates its own window
Terminal (Auto-Close)--the application will run in a terminal emulator window that closes automatically when the user exits the application
Terminal (Manual Close)--the application will run in a terminal emulator window that remains open until the user explicitly closes it
No Output--the application does not produce output to the display
Proceed as follows:
If your application has data files, and you want to create one or more data types for them, see the next section, "To Create One or More Data Types for an Application".''
If you do not need to create a data type, save the action by choosing Save from the File menu. Then, test the new action by double-clicking its icon in your home directory.