home *** CD-ROM | disk | FTP | other *** search
/ Products & Services for NeXT / Products & Services for NeXT.iso / AlembicDemo.app / ScriptWriter / ScriptGroups / Tutorial Script #4.scrgrp (.txt) < prev    next >
Encoding:
NeXT TypedStream Data  |  1993-07-27  |  31.1 KB  |  426 lines

  1. typedstream
  2. ScriptGroup
  3. Object
  4. Window
  5.     Responder
  6.     @@ifss*@s
  7. ScrollView
  8. ClipView
  9. ScriptGroupMatrix
  10. SuperMatrix
  11. Matrix
  12. Control
  13. @:@iiii
  14. ButtonCell
  15. ActionCell
  16. Blank
  17.     Helvetica
  18. NXImage
  19. UnixIcon
  20. Example Script #4
  21. singleClick:
  22. ff@@#::s
  23. Scroller
  24. _doScroller:
  25. @@@ffs
  26. Button
  27. Operations
  28.     PopUpList
  29. Panel
  30. MenuCell
  31.     Insert...
  32. menuChoice:
  33.     Remove...
  34. Edit...
  35. Edit Title...
  36. Set Icon...
  37. Miniaturize...
  38. Dump...
  39. MenuItem
  40. popUp:
  41. NXpulldown
  42. NXpulldownH
  43.     TextField
  44. TextFieldCell
  45. Helvetica-Bold
  46. Tutorial Script #4
  47. Script
  48. NXSplitView
  49. ScriptView
  50. StickyView
  51. ScriptTextView
  52. ciifffcfffs
  53. [118c]{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  54. \margl40
  55. \margr40
  56. \f0\b0\i0\ulnone\ql\fs24\fi0\li0\gray0\fc0\cf0\up0\dn0 
  57. NXCursor
  58. NXibeam
  59. UnixIcon.tiff
  60. VariableReference
  61. ${New Reference}
  62. A C library file
  63. %Any file or folder with any extension
  64. $A file containing Adobe Font Metrics
  65. )A directory containing an executable file
  66. )A file containing source code for the DSP
  67. -A file containing an awk script (General use)
  68. &A file containing an Adobe Bitmap font
  69. A FrameMaker file
  70. A file containing C source code
  71. )A file containing Common Lisp source code
  72. 0A file containing a C shell script (General use)
  73.  A Draw (NeXT-provided Demo) file
  74. #A file with binary code for the DSP
  75. &A TeX file (device independent format)
  76. (A file containing Emacs Lisp source code
  77. "An Emacs Lisp compiled format file
  78. .A file containing Encapsulated PostScript code
  79. %A file containing Fortran source code
  80. #A StatLab (NeXT-provided Demo) file
  81. frame
  82. framemif
  83. A C header file
  84. iconheader
  85. AAn Interface Builder file (header information for __ICON segment)
  86. "A DSP simulator file (General use)
  87. /A file containing lex source code (General use)
  88. /A file with relocatable object code for the DSP
  89. .A program that can be loaded to run on the DSP
  90. )A file with the listing for a DSP program
  91. ?A file containing Objective-C source code or a Mathematica file
  92. &A text file for a Mathematica notebook
  93. makefile
  94. A make file (General use)
  95. 6A file containing a load map for the DSP (General use)
  96. ?A file containing binary information for a Mathematica notebook
  97. A file containing mail messages
  98. PA file containing nroff and troff codes using the me macro package (General use)
  99. A TeX file (Metafont source)
  100. A file with binary MIDI data
  101. $A Molecule (NeXT-provided Demo) file
  102. =A file containing a msgwrap declaration (for msgwrap utility)
  103. %A file containing nroff (General use)
  104. A Ray (NeXT-provided Demo) file
  105. -An archive file produced by Interface Builder
  106. Any file with no extension
  107. 1A file containing binary, relocatable object code
  108. =An extension marking old files, no specific app (General use)
  109. $A file containing Pascal source code
  110. !A file containing PostScript code
  111. 5A file containing declarations for the pswrap utility
  112. ;A file with pswrap declarations and Objective-C source code
  113. 9A file with source code for the Ratfor variety of Fortran
  114.  A file in Rich Text Format (RTF)
  115. =A file containing assembly source code for the main processor
  116. score
  117. &A music file in the ScoreFile language
  118. ,A file containing a sed script (General use)
  119. .A file containing a shell script (General use)
  120. A sound file
  121. A TeX file (style definitions)
  122. 6A file containing a assembly source code (General use)
  123. A TeX file (TeX source file)
  124. A file containing a TeX font
  125. &A file in Tag Image File Format (TIFF)
  126. )A TopologyLab (a NeXT-provided Demo) file
  127. )A file created via uuencode (General use)
  128. "A TeX file (meta-level TeX source)
  129. A file in WriteNow format
  130. wndict
  131. A WriteNow dictionary
  132. +A file containing yacc source (General use)
  133. )A file created via compress (General use)
  134.  NeXT plain ascii pasteboard typex
  135. ItemImageDragView
  136. ImageDragView
  137. DragView
  138. Variable Set
  139. NXBitmapImageRep
  140. NXImageRep
  141. iisssss00
  142. [4608c]U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_
  143. U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_U_
  144.     VarHolder
  145. ScriptConnector
  146. VelcroConnector
  147. Command
  148. [576c]UUUUUUUUUUU@
  149. UaYZY
  150. UUaefZ
  151. UUUqYf
  152. UUUqYfje
  153. uUUUqVe
  154. UUrYj
  155. uUUUsU
  156. uTUUFYPU
  157. tUUU1U
  158. uEUUqPUX
  159. QQpUUh
  160. UaVfX
  161. TT1UY
  162. dDEAaYf`_
  163. aUUPW
  164. XDAUae
  165. EUUUa
  166. UUUUUUUUUUX
  167. NXCachedImageRep
  168. iiiiii00
  169. U_U_U_U_eoU_T_U_eoU_UoU_d_U_eoU_eoU_doUoT_U_U_U_UoE_UoU_e_U_eoU_dOeOuOe?t?e?e_UOeoU_U_VOUO
  170. d/T_w
  171. OuOtOeO
  172. u_f_v
  173. _vOuOe?
  174. OeOu_vo
  175. _vOtOuOt?uO
  176. ou_eOu_eOu_eOu_v_u_vO
  177. UOS?wov
  178. e?tOeOtOeOtOuOu_uO
  179. eOeOdOeOdOeOuOeOuouOtOvO
  180. 2/uof
  181. T/d?d?t_dOtOu?t?uO
  182. B/S/2?w
  183. S/T?dOdOdOe?dOeOuOuO
  184. _v_B/
  185. T?c?d?cOdOtOuOtOuO
  186. oB?wov
  187. dOT?d?T?dOeOuOeO
  188. T/S?T?c?T?dOeOtOuO
  189. d/uOvO
  190. B/vov
  191. S?C?SOe?dOT?d_eOu_u_u_
  192. oe?uO
  193. T/B/T?R?T?c?T?d?T/t_uOu_eOd?2
  194. tOu_tO
  195. oB?vov
  196. uOT?S?T?SOT?dOU?d?eOu_T?B/2
  197. _S?T?B?SOS/T/S/T?cOB
  198. R/S/d?e?
  199. T/S?T_SOT?S?eOB/B/SOeOdOf?
  200. !/3O2Of
  201. R?S?S?C
  202. SO2/2
  203. T/cOdOdO
  204. _uOvO
  205. 2?DOCOfo
  206. eOS?C/B/2
  207. S?U?T?e_uov_u_vO
  208. 3?#?D_Wofo
  209. S/c?v_
  210. d?c?T?c?uO
  211. !/3?2?3?T_DOf
  212. S?T?S?2
  213. S?T?S?T?dOuOuOvO
  214. /3?3?2?4OD_Voe
  215. S/S?C/R/S/S?d?dOuOtOuOtOuOu_vOu_
  216. !/3?2?3?CODOv
  217. S?T?S?T?dOeOdOeOu_uOu_vOuOv_u_v_
  218. 3?#?"?E_D_Vof
  219. T?c?d?tOd?c?eOtOeOtOuOu_eOdOvo2/
  220. 3?2?3?C_D_v
  221. foeofo
  222. dOT?tOT?dOeOdOeOdOu_u_eOuo2
  223. "/3O3?2?DOD_f
  224. VoeoVof
  225. S?S?S/c?T?tOeOdOuOd_eOB?
  226. !/3?2?"?D_DOv
  227. Uofoe
  228. S?T?dOT?dOeOdOeOu_"/
  229. CO#?3OE_D_f
  230. T?S?dOdOeOdOu_2/
  231. !/3?2O3?S_U_f
  232. dOTOdOT?TO2
  233. 2?3?2?4OTof
  234. TOd_UOB/
  235. /#/CO3?T_EOv
  236. Voeofoe
  237. foeoUof
  238. VoTofo
  239. 3?#?#?5OD_g
  240. VoUoVoUoVoUo
  241. EOU_V_U_V_T_U_e_UOU_U_U_V_UoE_UoE_UoVoUoV_T_U_UoU_UoU_UoU_UoU_UoE_UoU_UoU_UoE_UoE_UoV_eo
  242. U_U_U_U_eoU_T_U_eoU_UoU_d_U_eoU_eoU_doUoT_U_U_U_UoE_UoU_e_U_eoU_dOeOuOe?t?e?e_UOeoU_U_VOUO
  243. d/T_w
  244. OuOtOeO
  245. u_f_v
  246. _vOuOe?
  247. OeOu_vo
  248. _vOtOuOt?uO
  249. ou_eOu_eOu_eOu_v_u_vO
  250. UOS?wov
  251. e?tOeOtOeOtOuOu_uO
  252. eOeOdOeOdOeOuOeOuouOtOvO
  253. 2/uof
  254. T/d?d?t_dOtOu?t?uO
  255. B/S/2?w
  256. S/T?dOdOdOe?dOeOuOuO
  257. _v_B/
  258. T?c?d?cOdOtOuOtOuO
  259. oB?wov
  260. dOT?d?T?dOeOuOeO
  261. T/S?T?c?T?dOeOtOuO
  262. d/uOvO
  263. B/vov
  264. S?C?SOe?dOT?d_eOu_u_u_
  265. oe?uO
  266. T/B/T?R?T?c?T?d?T/t_uOu_eOd?2
  267. tOu_tO
  268. oB?vov
  269. uOT?S?T?SOT?dOU?d?eOu_T?B/2
  270. _S?T?B?SOS/T/S/T?cOB
  271. R/S/d?e?
  272. T/S?T_SOT?S?eOB/B/SOeOdOf?
  273. !/3O2Of
  274. R?S?S?C
  275. SO2/2
  276. T/cOdOdO
  277. _uOvO
  278. 2?DOCOfo
  279. eOS?C/B/2
  280. S?U?T?e_uov_u_vO
  281. 3?#?D_Wofo
  282. S/c?v_
  283. d?c?T?c?uO
  284. !/3?2?3?T_DOf
  285. S?T?S?2
  286. S?T?S?T?dOuOuOvO
  287. /3?3?2?4OD_Voe
  288. S/S?C/R/S/S?d?dOuOtOuOtOuOu_vOu_
  289. !/3?2?3?CODOv
  290. S?T?S?T?dOeOdOeOu_uOu_vOuOv_u_v_
  291. 3?#?"?E_D_Vof
  292. T?c?d?tOd?c?eOtOeOtOuOu_eOdOvo2/
  293. 3?2?3?C_D_v
  294. foeofo
  295. dOT?tOT?dOeOdOeOdOu_u_eOuo2
  296. "/3O3?2?DOD_f
  297. VoeoVof
  298. S?S?S/c?T?tOeOdOuOd_eOB?
  299. !/3?2?"?D_DOv
  300. Uofoe
  301. S?T?dOT?dOeOdOeOu_"/
  302. CO#?3OE_D_f
  303. T?S?dOdOeOdOu_2/
  304. !/3?2O3?S_U_f
  305. dOTOdOT?TO2
  306. 2?3?2?4OTof
  307. TOd_UOB/
  308. /#/CO3?T_EOv
  309. Voeofoe
  310. foeoUof
  311. VoTofo
  312. 3?#?#?5OD_g
  313. VoUoVoUoVoUo
  314. EOU_V_U_V_T_U_e_UOU_U_U_V_UoE_UoE_UoVoUoV_T_U_UoU_UoU_UoU_UoU_UoE_UoU_UoU_UoE_UoE_UoV_eo
  315. ScriptLine
  316. ls ${TheDirectory}
  317. list contents of directory
  318. S{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  319. \margl40
  320. \margr40
  321. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 For each directory argument, 
  322. \b ls
  323. \b0  lists the contents of the directory; for each file argument, 
  324. \b ls
  325. \b0  repeats its name and any other information requested. By default, the output is sorted alphabetically. When no argument is given, the current directory is listed. When several arguments are given, the arguments are first sorted appropriately, but file arguments are processed before directories and their contents.
  326. [18@]
  327. CommandOption
  328. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  329. \margl40
  330. \margr40
  331. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 List in long format, giving mode, number of links, owner, size in bytes, and time of last modification for each file. If the file is a special file the size field will instead contain the major and minor device numbers. If the file is a symbolic link the pathname of the linked-to file is printed preceded by ``->''.
  332. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  333. \margl40
  334. \margr40
  335. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 Include the group ownership of the file in a long output.
  336. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  337. \margl40
  338. \margr40
  339. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 Sort by time modified (latest first) instead of by name.
  340. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  341. \margl40
  342. \margr40
  343. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 List all entries; in the absence of this option, entries whose names begin with a period (.) are not listed.
  344. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  345. \margl40
  346. \margr40
  347. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 List all entries except for the current directory (.) and the parent directory (..).
  348. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  349. \margl40
  350. \margr40
  351. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Give size in kilobytes of each file.
  352. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  353. \margl40
  354. \margr40
  355. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 If argument is a directory, list only its name; often used with -l to get the status of a directory.
  356. z{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  357. \margl40
  358. \margr40
  359. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 If argument is a symbolic link, list the file or directory the link references rather than the link itself. Note that if the link references a directory the link is always followed, unless the -l option is used.
  360. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  361. \margl40
  362. \margr40
  363. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Reverse the order of sort to get reverse alphabetic or oldest first as appropriate.
  364. "{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  365. \margl40
  366. \margr40
  367. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Use time of last access instead of last modification for sorting (with the -t option) and/or printing (with the -l option).
  368. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  369. \margl40
  370. \margr40
  371. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Use time of file creation for sorting or printing.
  372. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  373. \margl40
  374. \margr40
  375. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 For each file, print the i-number in the first column of the report.
  376. }{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  377. \margl40
  378. \margr40
  379. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Force each argument to be interpreted as a directory and list the name found in each slot. This option turns off -l, -t, -s, and -r, and turns on -a; the order is the order in which entries appear in the directory.
  380. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  381. \margl40
  382. \margr40
  383. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Cause directories to be marked with a trailing `/', sockets with a trailing `=', executable files with a trailing `*', and symbolic links to files with a trailing `@'. Symbolic links to directories are marked with a trailing `/', unless the -l option is also used.
  384. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  385. \margl40
  386. \margr40
  387. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 Recursively list subdirectories encountered.
  388. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  389. \margl40
  390. \margr40
  391. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Force one entry per line output format; this is the default when output is not to a terminal.
  392. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  393. \margl40
  394. \margr40
  395. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Force multi-column output; this is the default when output is to a terminal.
  396. "{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  397. \margl40
  398. \margr40
  399. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Force printing of non-graphic characters in file names as the character `?'; this is the default when output is to a terminal.
  400. CommandArgument
  401. ArgumentValue
  402. ${TheDirectory}
  403. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  404. \margl40
  405. \margr40
  406. {\pard\tx1152\tx2304\tx3456\tx4608\tx5760\tx6912\tx8064\tx9216\tx10368\tx11520\f0\b0\i0\ulnone\fs24\fc0\cf0{\VariableReferenceCell0 15 ${TheDirectory}0 }
  407. Variable
  408. TheDirectory
  409. VariableGroup
  410. MyVariableGroup
  411. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  412. \margl40
  413. \margr40
  414. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 Name is the path given to list files or directories.
  415. set TheDirectory = /etc/
  416. /etc/
  417. {\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  418. \margl40
  419. \margr40
  420. \pard\tx1152\tx2304\tx3456\tx4608\tx5760\tx6912\tx8064\tx9216\tx10368\tx11520\f0\b0\i0\ulnone\fs24\fc0\cf0 /etc/
  421. [218c]{\rtf0\ansi{\fonttbl\f0\fmodern Courier;}
  422. \margl40
  423. \margr40
  424. \pard\tx1152\tx2304\tx3456\tx4608\tx5760\tx6912\tx8064\tx9216\tx10368\tx11520\f0\b0\i0\ulnone\fs24\fc0\cf0 set TheDirectory = /etc/\
  425. ls $\{TheDirectory\}\
  426.