Set the Workspace icon for the new document

You set the icons for your new document type from an Adobe Illustrator file or a CompuServe GIF file using the utility program SetWorkspaceIcon.

SetWorkspaceIcon allows you to specify four icons for your document type:

Each icon can be set from either an Adobe Illustrator `88 file (-i option) or CompuServe GIF files (-g option). If you set an icon with a GIF file,
SetWorkspaceIcon also looks for a corresponding mask file. The mask file is a black and white (1-bit) bitmap in which the black pixels specify what part of the first image is to be used as the icon. Using a mask file allows you to specify icons with irregular edges or holes.

You run SetWorkspaceIcon in $TaligentRoot/SharedLibs. SetWorkspaceIcon automatically looks in the default user home place for the document named on the command line. Because the icon graphic file could be anywhere in the file system, you must specify complete path names for the Illustrator and GIF files.

The general format for setting the icons from Illustrator files is:

      % cd $TaligentRoot/SharedLibs
      % SetWorkspaceIcon MyDoc -i NormalDocumentIconFile -i NormalStationeryIconFile -i SmallDocumentIconFile -i SmallStationeryIconFile 
MyDoc is the name of the document for which to set the icon, -i indicates that the next argument is an Illustrator file, and each file name is the path name of the Illustrator file that contains the icon data for the icon.

The general format for setting the icons from GIF files is:

      % cd $TaligentRoot/SharedLibs
      % SetWorkspaceIcon MyDoc -g NormalDocumentIconFile -g NormalStationeryIconFile -g SmallDocumentIconFile -g SmallStationeryIconFile 
MyDoc is the name of the document for which to set the icon, -g indicates that the next argument is a GIF file, and each file name is the path name of the GIF file that contains the icon data for the icon.

All of the icons do not have to be set from the same type of file, you can use both Illustrator and GIF files in the icon set for a single document type.

NOTE In the current release, folders are not automatically aware of attribute changes, including icon changes. To force an update of the icon, you can drag the document into a folder and back out again.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker