typedstreamθ„@„„„Action„„NSObject…„i’„„„NSString”„+Show man as HTML†’„–—‹Asks the user for the name of a Unix command and creates its man(ual) page, formatted into HTML. Only '/usr/share/man' is searched, though.†’„„„NSMutableArray„„NSArray”•’„„„AtomicVariables„„Atomic”„ic’„–— Set Variables†’’•’„™•’„„„ VariableEntry”„idƒ’„–—manname†’„–—sh†’„–—Name of the command††††’„„„AtomicRunScriptœ’„–—Run Shell Script†’’„icccc’„–— #!/bin/sh†’„„„NSMutableString–—uoutman=%tempdir/%manname.html # look for the man file in man1, man2, ... man9 for no in 1 2 3 4 5 6 7 8 9 do manfile=`find /usr/share/man -name %manname.$no` if [ $manfile ] then groff -Thtml -man $manfile > $outman %tt $outman exit 0 fi done # not found in usual places, so tell user.. %tt -abort "man file for \"%manname\" was not found in /usr/share/man" ††’„„„AtomicOpenWithœ’„–—Open with Application†’’•’…’…††’„„„NSMutableDictionary„„ NSDictionary”•’„–—EMail†’„–—unknown†††