home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 562.lha / EZQ / EZQ.doc.pp / EZQ.doc
Encoding:
Text File  |  1991-10-08  |  3.8 KB  |  91 lines

  1. EZQ, The customizable print (or whatever) queue of your dreams!
  2.  
  3.     © 1991 Arnie Cachelin, HyperActive InterMedia
  4.  
  5. EZQ creates a Workbench icon which will process any files dropped on 
  6. it.  For example, you could drop a text file icon (or several) onto 
  7. the EZQ icon and have it come out on the printer.  The actual process 
  8. can be any CLI command or script, just enter it into the program 
  9. icon's ToolTypes array.  EZQ works only under Workbench 2.x.
  10.  
  11. Setting The Commands
  12.  
  13. To set the program icon's tooltypes, click on the icon, then 
  14. select 'Information' in the Workbench/Icons menu.  When the info 
  15. window comes up, click on the tooltype entry in the list to edit that 
  16. entry, or select 'New' to add an entry.  When the entry is complete, 
  17. hit return to place it in the list, and click the save button to exit.  
  18. Now double-click on the EZQ icon, and you will see the EZQ 'AppIcon' 
  19. appear on your Workbench screen.  Whenever you drop a file onto the 
  20. appicon, it will be processed based on the ToolTypes you have entered.  
  21. If you are satisfied with the performance, you should duplicate EZQ, 
  22. and rename it in a way which makes its function apparent.  This new 
  23. program name will appear under the appicon.
  24.  
  25. Entries should be valid commands, and appear as they would be 
  26. typed in a CLI window, with the full path of the command specified.  
  27. The path and the name of whatever icon was dropped onto the appicon 
  28. will be substituted into successive occurances of "%s" in the command 
  29. entry.  (i.e. if the file MyDisk:CoolPic is processed with the command 
  30. entry 'C:Show "%s%s"', the first %s will be replaced with 'MyDisk:' 
  31. and the second, by 'CoolPic'.)  Quotes (") around the file/path 
  32. symbols are not required by EZQ, but will allow file names which 
  33. contain spaces to be processed in most cases. 
  34.  
  35. EZQ makes no provision for a command's output; if you wish to see 
  36. the program output you must explicitly provide an output path.  This 
  37. may be done by redirecting the output of the command to a con: window 
  38. (e.g. 'C:Type >con:10\10\500\200\Title "%s%s" '.)  This window snaps 
  39. shut immediately after the command finishes.
  40.  
  41. EZQ in action
  42.  
  43. Once EZQ's appicon has come up on screen, it will process any 
  44. file(s) you drop it.  Multiple icons can be selected and dragged onto 
  45. the appicon by placing the mouse pointer over the appicon.  Multiple 
  46. files may also be dropped on one at a time.  If the process takes a 
  47. long time or waits for input before returning, then the files will 
  48. line up and wait to be processed.  To remove EZQ, simply double-click 
  49. on the appicon.
  50.  
  51. C Programmers
  52.  
  53. Source code for EZQ is included.  It is a quite simple program 
  54. which uses the system's message list to queue a series of files, then 
  55. loop through commands in the program icon's tooltypes array, executing 
  56. them with the file names inserted.  The actual appicon image is in the 
  57. file EZQIcon.h created with the HyperActve InterMedia Icon utility 
  58. (available separately).  Other images could be substituted.  Other 
  59. options for changing the appicon image are: 1) Use the program icon 
  60. though it may get confusing which is which. 2)add a tooltype for an 
  61. icon file or accept an icon as an argument.  I should also try to use 
  62. AmigaDOS 2.0 Makelink command rather than duplicating the file for 
  63. different icons.
  64.  
  65. I really like this little program, and am glad WB 2.0 makes it so 
  66. EZ to do.  I also feel kinda object-oriented when I can encapsulate 
  67. all the program's configuration data in its icon.  I hope you find 
  68. this useful and interesting.
  69.  
  70. EZQ is freely distributable shareware, please send whatever 
  71. contribution you consider appropriate.  Feel free to use the source 
  72. code in your own creations, but please give credit where it is due.
  73.  
  74. Please send suggestions, bug reports, revisions, jobs, candygrams, 
  75. etc. to:
  76.  
  77.  
  78.  
  79. Arnie Cachelin
  80.  
  81. HyperActive InterMedia
  82.  
  83. 1743 Hayes St.
  84.  
  85. San Francisco, CA 94117
  86.  
  87.  
  88.  
  89.  
  90.  
  91.