dtfile.dt.src 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. XCOMM ##########################################################################
  2. XCOMM
  3. XCOMM dtfile.dt
  4. XCOMM
  5. XCOMM Actions for interfacing to the Common Desktop Environment
  6. XCOMM File Manager.
  7. XCOMM
  8. XCOMM (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
  9. XCOMM (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
  10. XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
  11. XCOMM (c) Copyright 1993, 1994, 1995 Novell, Inc.
  12. XCOMM
  13. XCOMM $TOG: dtfile.dt.src /main/5 1997/03/28 14:46:11 mgreess $
  14. XCOMM
  15. XCOMM ##########################################################################
  16. #define HASH #
  17. set DtDbVersion=1.0
  18. XCOMM ##########################################################################
  19. XCOMM
  20. %|nls-10-#HASH WARNING:...#|
  21. XCOMM
  22. XCOMM ##########################################################################
  23. #define STAR *
  24. XCOMM ##################################################################
  25. XCOMM
  26. %|nls-4001-#HASH Data Attributes#|
  27. XCOMM
  28. XCOMM ##################################################################
  29. XCOMM ###########################################################
  30. XCOMM
  31. %|nls-4002-#HASH Folders#|
  32. XCOMM
  33. XCOMM ###########################################################
  34. DATA_ATTRIBUTES TRASH_FOLDER
  35. {
  36. ACTIONS OpenInPlace,OpenNewView,Print
  37. ICON DtdirR
  38. MEDIA FILE_NAME
  39. MOVE_TO_ACTION FILESYSTEM_MOVE
  40. DESCRIPTION %|nls-4003-#This folder....#|
  41. TYPE_LABEL %|nls-31034-#TRASH_FOLDER#|
  42. }
  43. DATA_CRITERIA TRASH_FOLDER1
  44. {
  45. DATA_ATTRIBUTES_NAME TRASH_FOLDER
  46. MODE d
  47. PATH_PATTERN STAR/.dt/Trash
  48. }
  49. ACTION Open
  50. {
  51. LABEL %|nls-1-Open|
  52. ARG_TYPE TRASH_FOLDER
  53. TYPE MAP
  54. MAP_ACTION OpenFolder
  55. }
  56. ACTION Print
  57. {
  58. LABEL %|nls-2-Print|
  59. ARG_TYPE TRASH_FOLDER
  60. TYPE MAP
  61. MAP_ACTION PrintFolderList
  62. }
  63. XCOMM ###########################################################
  64. DATA_ATTRIBUTES OPEN_PARENT_FOLDER
  65. {
  66. ACTIONS OpenInPlace,OpenNewView,Print
  67. ICON Dtdirup
  68. MEDIA FILE_NAME
  69. MOVE_TO_ACTION FILESYSTEM_MOVE
  70. COPY_TO_ACTION FILESYSTEM_COPY
  71. LINK_TO_ACTION FILESYSTEM_LINK
  72. }
  73. DATA_ATTRIBUTES PARENT_FOLDER
  74. {
  75. ACTIONS OpenInPlace,OpenNewView,Print
  76. ICON Dtdirup
  77. MEDIA FILE_NAME
  78. MOVE_TO_ACTION FILESYSTEM_MOVE
  79. COPY_TO_ACTION FILESYSTEM_COPY
  80. LINK_TO_ACTION FILESYSTEM_LINK
  81. DESCRIPTION %|nls-4004-#The '..'#|
  82. TYPE_LABEL %|nls-31035-#PARENT_FOLDER#|
  83. }
  84. DATA_CRITERIA PARENT_FOLDER1
  85. {
  86. DATA_ATTRIBUTES_NAME PARENT_FOLDER
  87. MODE d
  88. NAME_PATTERN ..
  89. }
  90. ACTION Open
  91. {
  92. LABEL %|nls-1-Open|
  93. ARG_TYPE PARENT_FOLDER
  94. TYPE MAP
  95. MAP_ACTION OpenFolder
  96. }
  97. ACTION Print
  98. {
  99. LABEL %|nls-2-Print|
  100. ARG_TYPE PARENT_FOLDER
  101. TYPE MAP
  102. MAP_ACTION PrintFolderList
  103. }
  104. XCOMM ###########################################################
  105. DATA_ATTRIBUTES OPEN_CURRENT_FOLDER
  106. {
  107. ACTIONS OpenInPlace,OpenNewView,Print
  108. ICON DtdirB
  109. MEDIA FILE_NAME
  110. MOVE_TO_ACTION FILESYSTEM_MOVE
  111. COPY_TO_ACTION FILESYSTEM_COPY
  112. LINK_TO_ACTION FILESYSTEM_LINK
  113. }
  114. DATA_ATTRIBUTES CURRENT_FOLDER
  115. {
  116. ACTIONS OpenInPlace,OpenNewView,Print
  117. ICON DtdirB
  118. MEDIA FILE_NAME
  119. MOVE_TO_ACTION FILESYSTEM_MOVE
  120. COPY_TO_ACTION FILESYSTEM_COPY
  121. LINK_TO_ACTION FILESYSTEM_LINK
  122. DESCRIPTION %|nls-4005-#The '.'#|
  123. TYPE_LABEL %|nls-31036-#CURRENT_FOLDER#|
  124. }
  125. DATA_CRITERIA CURRENT_FOLDER1
  126. {
  127. DATA_ATTRIBUTES_NAME CURRENT_FOLDER
  128. MODE d
  129. NAME_PATTERN .
  130. }
  131. ACTION Open
  132. {
  133. LABEL %|nls-1-Open|
  134. ARG_TYPE CURRENT_FOLDER
  135. TYPE MAP
  136. MAP_ACTION OpenFolder
  137. }
  138. ACTION Print
  139. {
  140. LABEL %|nls-2-Print|
  141. ARG_TYPE CURRENT_FOLDER
  142. TYPE MAP
  143. MAP_ACTION PrintFolderList
  144. }
  145. XCOMM ###########################################################
  146. DATA_ATTRIBUTES DOT_FOLDER
  147. {
  148. ACTIONS OpenInPlace,OpenNewView,Print
  149. ICON DtdirB
  150. MEDIA FILE_NAME
  151. MOVE_TO_ACTION FILESYSTEM_MOVE
  152. COPY_TO_ACTION FILESYSTEM_COPY
  153. LINK_TO_ACTION FILESYSTEM_LINK
  154. DESCRIPTION %|nls-4006-#This folder's#|
  155. TYPE_LABEL %|nls-31037-#DOT_FOLDER#|
  156. }
  157. DATA_CRITERIA DOT_FOLDER1
  158. {
  159. DATA_ATTRIBUTES_NAME DOT_FOLDER
  160. MODE d
  161. NAME_PATTERN .*
  162. }
  163. ACTION Open
  164. {
  165. LABEL %|nls-1-Open|
  166. ARG_TYPE DOT_FOLDER
  167. TYPE MAP
  168. MAP_ACTION OpenFolder
  169. }
  170. ACTION Print
  171. {
  172. LABEL %|nls-2-Print|
  173. ARG_TYPE DOT_FOLDER
  174. TYPE MAP
  175. MAP_ACTION PrintFolderList
  176. }
  177. XCOMM ###########################################################
  178. DATA_ATTRIBUTES FOLDER_LOCK
  179. {
  180. ACTIONS OpenInPlace,OpenNewView,Print
  181. ICON Dtdirlk
  182. MEDIA FILE_NAME
  183. MOVE_TO_ACTION FILESYSTEM_MOVE
  184. COPY_TO_ACTION FILESYSTEM_COPY
  185. LINK_TO_ACTION FILESYSTEM_LINK
  186. DESCRIPTION %|nls-4007-#This is#|
  187. TYPE_LABEL %|nls-31038-#FOLDER_LOCK#|
  188. }
  189. DATA_CRITERIA FOLDER_LOCK1
  190. {
  191. DATA_ATTRIBUTES_NAME FOLDER_LOCK
  192. MODE d&!r
  193. }
  194. DATA_CRITERIA FOLDER_LOCK2
  195. {
  196. DATA_ATTRIBUTES_NAME FOLDER_LOCK
  197. MODE d&!x
  198. }
  199. DATA_ATTRIBUTES OPEN_NON_WRITABLE_FOLDER
  200. {
  201. ACTIONS OpenInPlace,OpenNewView,Print
  202. ICON DtdirBO
  203. MEDIA FILE_NAME
  204. MOVE_TO_ACTION FILESYSTEM_MOVE
  205. COPY_TO_ACTION FILESYSTEM_COPY
  206. LINK_TO_ACTION FILESYSTEM_LINK
  207. }
  208. DATA_ATTRIBUTES NON_WRITABLE_FOLDER
  209. {
  210. ACTIONS OpenInPlace,OpenNewView,Print
  211. ICON Dtdirnw
  212. MEDIA FILE_NAME
  213. MOVE_TO_ACTION FILESYSTEM_MOVE
  214. COPY_TO_ACTION FILESYSTEM_COPY
  215. LINK_TO_ACTION FILESYSTEM_LINK
  216. DESCRIPTION %|nls-4007-#This is#|
  217. TYPE_LABEL %|nls-31039-#NON_WRITABLE_FOLDER#|
  218. }
  219. DATA_CRITERIA NON_WRITABLE_FOLDER1
  220. {
  221. DATA_ATTRIBUTES_NAME NON_WRITABLE_FOLDER
  222. MODE d&!w
  223. }
  224. ACTION Open
  225. {
  226. LABEL %|nls-1-Open|
  227. ARG_TYPE FOLDER_LOCK
  228. TYPE MAP
  229. MAP_ACTION OpenFolder
  230. }
  231. ACTION Print
  232. {
  233. LABEL %|nls-2-Print|
  234. ARG_TYPE FOLDER_LOCK
  235. TYPE MAP
  236. MAP_ACTION PrintFolderList
  237. }
  238. XCOMM ###########################################################
  239. DATA_ATTRIBUTES OPEN_FOLDER
  240. {
  241. ACTIONS OpenInPlace,OpenNewView,Print
  242. ICON DtdirBO
  243. MEDIA FILE_NAME
  244. MOVE_TO_ACTION FILESYSTEM_MOVE
  245. COPY_TO_ACTION FILESYSTEM_COPY
  246. LINK_TO_ACTION FILESYSTEM_LINK
  247. }
  248. DATA_ATTRIBUTES FOLDER
  249. {
  250. ACTIONS OpenInPlace,OpenNewView,Print
  251. ICON DtdirB
  252. MEDIA FILE_NAME
  253. MOVE_TO_ACTION FILESYSTEM_MOVE
  254. COPY_TO_ACTION FILESYSTEM_COPY
  255. LINK_TO_ACTION FILESYSTEM_LINK
  256. DESCRIPTION %|nls-4008-#This is#|
  257. TYPE_LABEL %|nls-31040-#FOLDER#|
  258. }
  259. DATA_CRITERIA FOLDER1
  260. {
  261. DATA_ATTRIBUTES_NAME FOLDER
  262. MODE d
  263. }
  264. ACTION Open
  265. {
  266. LABEL %|nls-1-Open|
  267. ARG_TYPE FOLDER
  268. TYPE MAP
  269. MAP_ACTION OpenFolder
  270. }
  271. ACTION Print
  272. {
  273. LABEL %|nls-2-Print|
  274. ARG_TYPE FOLDER
  275. TYPE MAP
  276. MAP_ACTION PrintFolderList
  277. }
  278. XCOMM ###########################################################
  279. XCOMM ###########################################################
  280. XCOMM
  281. %|nls-11-#HASH Data Attributes#|
  282. XCOMM
  283. XCOMM ###########################################################
  284. DATA_ATTRIBUTES RECURSIVE_LINK
  285. {
  286. ICON Dtinf
  287. DESCRIPTION %|nls-4009-#This icon....#|
  288. TYPE_LABEL %|nls-31041-#RECURSIVE_LINK#|
  289. }
  290. XCOMM ###########################################################
  291. DATA_ATTRIBUTES BROKEN_LINK
  292. {
  293. ICON Dtblink
  294. DESCRIPTION %|nls-4010-#This icon....#|
  295. TYPE_LABEL %|nls-31042-#BROKEN_LINK#|
  296. }
  297. XCOMM ###########################################################
  298. DATA_ATTRIBUTES DOT_FILE
  299. {
  300. ACTIONS Open,Print
  301. ICON Dtdata
  302. IS_TEXT true
  303. MIME_TYPE text/plain
  304. MEDIA C_STRING
  305. DESCRIPTION %|nls-4011-#This file's#|
  306. TYPE_LABEL %|nls-31043-#DOT_FILE#|
  307. }
  308. DATA_CRITERIA DOT_FILE1
  309. {
  310. DATA_ATTRIBUTES_NAME DOT_FILE
  311. MODE f
  312. NAME_PATTERN .*
  313. }
  314. XCOMM ###########################################################
  315. DATA_ATTRIBUTES EXECUTABLE
  316. {
  317. ACTIONS Run,Open
  318. ICON Dtexec
  319. IS_EXECUTABLE true
  320. COPY_TO_ACTION Execute
  321. MIME_TYPE application/octet-stream
  322. SUNV3_TYPE default-app
  323. MEDIA _DT_DATA
  324. DESCRIPTION %|nls-4012-#This file#|
  325. TYPE_LABEL %|nls-31044-#EXECUTABLE#|
  326. }
  327. DATA_CRITERIA EXECUTABLE1
  328. {
  329. DATA_ATTRIBUTES_NAME EXECUTABLE
  330. MODE f&x
  331. }
  332. ACTION Run
  333. {
  334. LABEL %|nls-3-#Run#|
  335. ARG_TYPE EXECUTABLE
  336. TYPE MAP
  337. MAP_ACTION Execute
  338. }
  339. XCOMM ###########################################################
  340. DATA_ATTRIBUTES UNKNOWN
  341. {
  342. ACTIONS Open,Print
  343. ICON Dtdata
  344. MIME_TYPE application/octet-stream
  345. MEDIA _DT_DATA
  346. DESCRIPTION %|nls-4013-#This file#|
  347. TYPE_LABEL %|nls-31045-#UNKNOWN#|
  348. }
  349. XCOMM ###########################################################
  350. DATA_ATTRIBUTES DATA
  351. {
  352. ACTIONS Open,Print
  353. ICON Dtdata
  354. MIME_TYPE text/plain
  355. MEDIA _DT_DATA
  356. DESCRIPTION %|nls-4014-#This file#|
  357. TYPE_LABEL %|nls-31046-#DATA#|
  358. }
  359. DATA_CRITERIA DATA1
  360. {
  361. DATA_ATTRIBUTES_NAME DATA
  362. MODE f&!x
  363. }
  364. XCOMM ###################################################################
  365. XCOMM ###################################################################
  366. XCOMM
  367. %|nls-4015-#HASH Actions provided#|
  368. XCOMM
  369. XCOMM ###################################################################
  370. ACTION DtfileHome
  371. {
  372. LABEL %|nls-4016-#File Manager Home#|
  373. ARG_COUNT 0
  374. ICON Fphome
  375. TYPE TT_MSG
  376. TT_CLASS TT_REQUEST
  377. TT_SCOPE TT_SESSION
  378. TT_OPERATION DtHome_Show
  379. DESCRIPTION %|nls-4017-#The File Manager Home....#|
  380. }
  381. XCOMM #####
  382. ACTION Dtfile
  383. {
  384. LABEL %|nls-4018-#File Manager#|
  385. ICON Fphome
  386. TYPE TT_MSG
  387. TT_CLASS TT_REQUEST
  388. TT_SCOPE TT_SESSION
  389. TT_OPERATION Edit
  390. TT_FILE %Arg_1"%|nls-4019-#Folder to open:#|"%
  391. TT_ARG0_MODE TT_INOUT
  392. TT_ARG0_VTYPE FILE_NAME
  393. DESCRIPTION %|nls-4020-#The File Manager...#|
  394. }
  395. XCOMM #####
  396. ACTION Dtappmgr
  397. {
  398. LABEL %|nls-4021-#Application Manager#|
  399. ICON Fpapps
  400. TYPE TT_MSG
  401. TT_CLASS TT_REQUEST
  402. TT_SCOPE TT_SESSION
  403. TT_OPERATION DtTools_Show
  404. TT_FILE /var/dt/appconfig/appmanager/$DTUSERSESSION
  405. TT_ARG0_MODE TT_IN
  406. TT_ARG0_VTYPE -title
  407. TT_ARG0_REP_TYPE TT_REP_STRING
  408. TT_ARG0_VALUE %|nls-4022-#Application_Manager#|
  409. TT_ARG1_MODE TT_IN
  410. TT_ARG1_VTYPE -help_volume
  411. TT_ARG1_REP_TYPE TT_REP_STRING
  412. TT_ARG1_VALUE Appmanager
  413. DESCRIPTION %|nls-4023-#The Application Manager action....#|
  414. }
  415. XCOMM #####
  416. ACTION DtEmptyTrash
  417. {
  418. LABEL %|nls-31106-#Empty Trash Can#|
  419. ARG_COUNT 0
  420. ICON Dtshred
  421. TYPE TT_MSG
  422. TT_CLASS TT_REQUEST
  423. TT_SCOPE TT_SESSION
  424. TT_OPERATION DtTrash_Empty
  425. DESCRIPTION %|nls-31107-#The Empty Trash....#|
  426. }
  427. ACTION Dttrash
  428. {
  429. LABEL %|nls-4027-#Trash Can#|
  430. ARG_COUNT 0
  431. ICON Dttrsh
  432. TYPE TT_MSG
  433. TT_CLASS TT_REQUEST
  434. TT_SCOPE TT_SESSION
  435. TT_OPERATION DtTrash_Show
  436. DESCRIPTION %|nls-4028-#The Trash....#|
  437. }
  438. ACTION Dttrash
  439. {
  440. LABEL %|nls-4027-#Trash Can#|
  441. ARG_COUNT >0
  442. ICON Dttrsh
  443. TYPE TT_MSG
  444. TT_CLASS TT_REQUEST
  445. TT_SCOPE TT_SESSION
  446. TT_OPERATION DtTrash_Remove
  447. TT_ARG0_MODE TT_IN
  448. TT_ARG0_VTYPE string
  449. TT_ARG1_MODE TT_IN
  450. TT_ARG1_VTYPE string
  451. TT_ARG1_REP_TYPE TT_REP_STRING
  452. TT_ARG1_VALUE %Arg_1%
  453. DESCRIPTION %|nls-4028-#The Trash....#|
  454. }
  455. ACTION DtUnlink
  456. {
  457. LABEL %|nls-4027-#Trash Can#|
  458. ARG_COUNT 2
  459. ICON Dttrsh
  460. TYPE TT_MSG
  461. TT_CLASS TT_REQUEST
  462. TT_SCOPE TT_SESSION
  463. TT_OPERATION DtTrash_Remove
  464. TT_FILE %Arg_1%
  465. TT_ARG0_MODE TT_IN
  466. TT_ARG0_VTYPE string
  467. TT_ARG1_MODE TT_IN
  468. TT_ARG1_VTYPE string
  469. TT_ARG1_REP_TYPE TT_REP_STRING
  470. TT_ARG1_VALUE %Arg_2%
  471. DESCRIPTION %|nls-4028-#The Trash....#|
  472. }
  473. ACTION DtUnlink
  474. {
  475. LABEL %|nls-4027-#Trash Can#|
  476. ARG_COUNT >2
  477. ICON Dttrsh
  478. TYPE TT_MSG
  479. TT_CLASS TT_REQUEST
  480. TT_SCOPE TT_SESSION
  481. TT_OPERATION DtTrash_Remove
  482. TT_FILE %Arg_1%
  483. TT_ARG0_MODE TT_IN
  484. TT_ARG0_VTYPE string
  485. TT_ARG0_REP_TYPE TT_REP_STRING
  486. TT_ARG0_VALUE %Args%
  487. DESCRIPTION %|nls-4028-#The Trash....#|
  488. }
  489. ACTION PutOnWorkspace
  490. {
  491. LABEL %|nls-30000-#Put On Workspace#|
  492. ICON Dtpodt
  493. TYPE TT_MSG
  494. TT_CLASS TT_REQUEST
  495. TT_SCOPE TT_SESSION
  496. TT_OPERATION DtFile_PutOnWorkspace
  497. TT_FILE %Arg_3%
  498. TT_ARG0_MODE TT_IN
  499. TT_ARG0_VTYPE -workspace
  500. TT_ARG0_REP_TYPE TT_REP_STRING
  501. TT_ARG0_VALUE %Arg_2%
  502. TT_ARG2_MODE TT_IN
  503. TT_ARG2_VTYPE string
  504. TT_ARG2_REP_TYPE TT_REP_STRING
  505. TT_ARG2_VALUE %Arg_3%
  506. DESCRIPTION %|nls-30001-#Put On Workspace....#|
  507. }
  508. XCOMM #####
  509. ACTION FILESYSTEM_MOVE
  510. {
  511. LABEL Move To Directory
  512. TYPE TT_MSG
  513. TT_CLASS TT_REQUEST
  514. TT_SCOPE TT_SESSION
  515. TT_OPERATION DtFile_Move
  516. TT_FILE %Arg_1%
  517. TT_ARG0_MODE TT_IN
  518. TT_ARG0_VTYPE string
  519. TT_ARG0_REP_TYPE TT_REP_STRING
  520. TT_ARG0_VALUE %Arg_1%
  521. TT_ARG1_MODE TT_IN
  522. TT_ARG1_VTYPE string
  523. TT_ARG1_REP_TYPE TT_REP_STRING
  524. TT_ARG1_VALUE %Args%
  525. DESCRIPTION The FILESYSTEM_MOVE action allows an Common\
  526. Desktop Environment compliant application \
  527. to run an action to which causes the File \
  528. Manager to preform a move on the file(s) \
  529. passed in. The format for this action is: \
  530. 'FILESYSTEM_MOVE <folder_name_to> <files>' \
  531. where files is a full path name list of files \
  532. separated by spaces.
  533. }
  534. XCOMM #####
  535. ACTION FILESYSTEM_COPY
  536. {
  537. LABEL Copy To Directory
  538. TYPE TT_MSG
  539. TT_CLASS TT_REQUEST
  540. TT_SCOPE TT_SESSION
  541. TT_OPERATION DtFile_Copy
  542. TT_FILE %Arg_1%
  543. TT_ARG0_MODE TT_IN
  544. TT_ARG0_VTYPE string
  545. TT_ARG0_REP_TYPE TT_REP_STRING
  546. TT_ARG0_VALUE %Arg_1%
  547. TT_ARG1_MODE TT_IN
  548. TT_ARG1_VTYPE string
  549. TT_ARG1_REP_TYPE TT_REP_STRING
  550. TT_ARG1_VALUE %Args%
  551. DESCRIPTION The FILESYSTEM_COPY action allows an Common\
  552. Desktop Environment compliant application \
  553. to run an action to which causes the File \
  554. Manager to preform a copy on the file(s) \
  555. passed in. The format for this action is: \
  556. 'FILESYSTEM_COPY <folder_name_to> <files>' \
  557. where files is a full path name list of files \
  558. separated by spaces.
  559. }
  560. XCOMM #####
  561. ACTION FILESYSTEM_LINK
  562. {
  563. LABEL Link To Directory
  564. TYPE TT_MSG
  565. TT_CLASS TT_REQUEST
  566. TT_SCOPE TT_SESSION
  567. TT_OPERATION DtFile_Link
  568. TT_FILE %Arg_1%
  569. TT_ARG0_MODE TT_IN
  570. TT_ARG0_VTYPE string
  571. TT_ARG0_REP_TYPE TT_REP_STRING
  572. TT_ARG0_VALUE %Arg_1%
  573. TT_ARG1_MODE TT_IN
  574. TT_ARG1_VTYPE string
  575. TT_ARG1_REP_TYPE TT_REP_STRING
  576. TT_ARG1_VALUE %Args%
  577. DESCRIPTION The FILESYSTEM_LINK action allows an Common\
  578. Desktop Environment compliant application \
  579. to run an action to which causes the File \
  580. Manager to preform a link on the file(s) \
  581. passed in. The format for this action is: \
  582. 'FILESYSTEM_LINK <folder_name_to> <files>' \
  583. where files is a full path name list of files \
  584. separated by spaces.
  585. }
  586. XCOMM #####
  587. ACTION OpenFolder
  588. {
  589. LABEL %|nls-1-#Open#|
  590. TYPE TT_MSG
  591. TT_CLASS TT_REQUEST
  592. TT_SCOPE TT_SESSION
  593. TT_OPERATION Edit
  594. TT_FILE %Arg_1"%|nls-4019-#Folder to open:#|"%
  595. TT_ARG0_MODE TT_INOUT
  596. TT_ARG0_VTYPE FILE_NAME
  597. DESCRIPTION %|nls-4029-#The Open New View action....#|
  598. }
  599. XCOMM #####
  600. ACTION OpenNewView
  601. {
  602. LABEL %|nls-9-#Open New View#|
  603. TYPE MAP
  604. MAP_ACTION Open
  605. }
  606. XCOMM #####
  607. ACTION OpenInPlace
  608. {
  609. LABEL %|nls-8-#Open In Place#|
  610. TYPE MAP
  611. MAP_ACTION Open
  612. }
  613. XCOMM #####
  614. ACTION PrintFolderList
  615. {
  616. LABEL %|nls-4030-#PrintFolderList#|
  617. TYPE COMMAND
  618. WINDOW_TYPE NO_STDIO
  619. EXEC_STRING sh -c ' \
  620. ls -aLlF "%(File)Arg_1%" | \
  621. /usr/dt/bin/dtlp -u "%(File)Arg_1%"'
  622. DESCRIPTION %|nls-4031-#The PrintFolderList action....#|
  623. }
  624. XCOMM ######################## EOF ############################################