List and load specific files
ArborX


Summary
Load's all the files in a directory with the specified extension into your document

The script below will load all the files in a directory with the specified extension into your document. In this example we use file area's and the .sgm extension. Note the *0 with the tftext macro so the text is not assigned to a particular frame, but loaded into the document:

 ^text_path={my_area}*.sgm 3
 ^blank= 5
 ^tflist= 7
 ^tflistn 9
 tflist "^text_path"^ 11
 :loop_A 13
 ?=^tflist,^blank }exit_script 15
 tft *0,"^tflistn",0,"^tflist","e1"^ 17
 tflist 19
 {loop_A 21
 :exit_script 23
 trun 0 25

Document created on 01-Jan-2001, last reviewed on 05-Sep-2002 (revision 1)