AIUG

Module name: AddTITLE.lsp

Function

This will scan documents and host files for the TITLE attribute in preparation for WorldView Press operations. All selected icons and all icons in selected containers are shown, but the TITLE attribute is only checked/set for document class icons and host-file class icons (since these may be postscript files, etc.) Icons which are sub-classes of these icon types are processed as well.

Description

A running list of icon names encountered is shown in a stayup window as the tool executes. Container names are followed by the '>' character. Each subsequent container level is indented from the previous level. Icons which are neither containers nor documents nor host files are followed by a '.' character. If a document or host file icon does have a TITLE attribute, the current TITLE is shown as well. For each document or host file which does not have a TITLE attribute, the user is requested to enter a title. Choosing the Cancel option skips the current icon without assigning a TITLE and the next icon located is processed. At the end of the report, a count of the documents and host files still needing a TITLE is shown.

The stayup may be printed or saved for later review (which would allow other operations, such as spelling checks of the TITLEs assigned.) A sample of the stayup follows:

   Selected and child documents and host files in desktop with TITLEs are:
  
    Test >
     doc1: TITLE = This is document 1
     foldr >
      fdoc2: TITLE =
      fdoc3: TITLE = This is document 3
      alispicon.
      ASCII-file1: TITLE = This is ASCII file 1
     ASCII-file2: TITLE =
     sub-class: TITLE = This is a document sub-class icon
  
   Total of 2 icon(s) still need TITLEs.
   Done.

Limitations

In this version, only document and host file icons are processed. Other icon classes will not have TITLEs added to them.

Disclaimer

*** THIS LISP IS NOT SUPPORTED - USE AT YOUR OWN RISK ***

Obtaining the Script

This script is available on the AIUG Web site at: http://www.arde.com/AIUG/archives/lisp/AddTITLE.lsp


(Updated 05 SEP 96)
This Web site is provided by Artronic Development.
Contact webmaster@www.arde.com with questions or problems. Copyright 1996 Arizona Interleaf Users Group