next up previous contents
Next: The full gamut of Up: set_atr Previous: Shortcuts

Examples

Here is an example of how I use set_atr to organize the anonymous FTP Area of a host which has just started running a prospero server.

First, make a starting link to the AFTP area on that host:

vln -n ZEPHYR.ISI.EDU AFTP starting-link
vcd starting-link
I now run an als on the directory and verify the contents. Let's say it contains a file named ``00README''. I want to make this file have a more descriptive name for people using a menu browser. I also want to make it appear first in the directory, above any files which do not have an explicit COLLATION-ORDER specified. Moreover, I want another file, Incomplete, to appear last in the directory:
als
  (contents scroll by)
set_atr 00README MENU-ITEM-DESCRIPTION 'Information about the files in this directory'
set_atr -linkprec 00README COLLATION-ORDER NUMERIC 1
set_atr Incomplete MENU-ITEM-DESCRIPTION 'This file is still unfinished.'
set_atr -linkprec Incomplete COLLATION-ORDER LAST NUMERIC 1
In this case, I specified the additional -linkprec option to set_atr, because COLLATION-ORDER is an attribute that applies only to a link in a directory, not to the underlying object.

If I know that a file is of a particular type, I can set the OBJECT-INTERPRETATION attribute on this file to help the menu browser handle the contents effectively:

set_atr group-photo.gif OBJECT-INTERPRETATION IMAGE GIF
The OBJECT-INTERPRETATION attribute is described in the document
[4] doc/working-notes/object-interpretation.txt, which is included in the Prospero distribution, but which has not yet been integrated into this manual.

A quick example of turning a file invisible with the -linkprec option:

set_atr .cap -linkprec LINK-TYPE I



Padma Indraganti
Tue Jul 9 11:37:24 PDT 1996