Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

Example of Creating a MAP Action

Suppose most of the files you fax are created with Text Editor and are of data type TEXTFILE (files named *.txt).

These steps add a ``Fax'' menu item to the data type's Selected menu.

  1. Open the file HomeDirectory/.dt/types/Fax.dt that was created in the previous example.

  2. Add this map action definition to the file:

    	ACTION Fax
     	{
     		ARG_TYPE			TEXTFILE
     		TYPE				MAP
     		MAP_ACTION		FaxComposer
     	} 
  3. Save the file.

  4. Copy the data attributes definition for TEXTFILE from /usr/dt/appconfig/types/language/dtpad.dt to a new file HomeDirectory/.dt/types/textfile.dt. Add the Fax action to the ACTIONS field.

    	DATA_ATTRIBUTES TEXTFILE
     	{
     		ACTIONS			Open,Print,Fax
     		ICON				Dtpenpd
     		…
     	}
  5. Save the file.

  6. Open Application Manager and double-click Reload Actions in the Desktop_Tools application group.