home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / dvlprstc.hqx / Developer Stack 1.3r / card_27504.txt < prev    next >
Encoding:
Text File  |  1991-04-30  |  7.0 KB  |  162 lines

  1. -- card: 27504 from stack: in.3r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2612
  5. -- name: ResCopy
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=59 top=234 right=256 bottom=180
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Install
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   --
  23.   --Original script by Steve Drazga, ART Incorpoated
  24.   --XFCNs used: none
  25.   --XCMDs used: none
  26.   --HANDLERS used: none
  27.   --FUNCTIONS used: installRes
  28.   --
  29.   if the optionkey is down then pass mouseup
  30.   put installres(XCMD,ResCopy) into it
  31.   put installres(DITL,ResCopy) into it
  32.   put installres(DLOG,ResCopy) into it
  33.   put installres(DITL,"RC Help") into it
  34.   put installres(DLOG,"RC Help") into it
  35. end mouseup
  36.  
  37.  
  38.  
  39. -- part contents for background part 2
  40. ----- text -----
  41. ResCopy
  42.  
  43. -- part contents for background part 3
  44. ----- text -----
  45. This is version 4.0b19 of the ResCopy XCMD by Steve Maller.
  46.  
  47. ResCopy XCMD Stack Hints & Tips
  48. Written by Steve Maller
  49.  
  50. ResCopy is (c) 1988 Apple Computer, Inc. 
  51.  "...a license agreement allowing commercial distribution of ResCopy is available for $25 per product/year from Apple Computer Software Licensing. Contact them at (408) 996-1010..."
  52.  
  53. ***************************
  54.  
  55. TO USE ResCopy:
  56.  
  57. -┬áClick the ΓÇ£OpenΓǪΓÇ¥ buttons to present a list of stacks on any inserted disk.
  58.  
  59. -  Select from either list the resource or resources you want to copy, remove, rename or renumber.
  60.  
  61. -┬áIf you click on an ΓÇÿICONΓÇÖ, it is displayed in the box in the middle of the window. If you click on a ΓÇÿsnd ΓÇÖ, the ΓÇ£PlayΓÇ¥ button is activated. If you click on a ΓÇÿCURSΓÇÖ the cursor is changed to that cursor until you click the mouse again.
  62.  
  63. -┬áClick the ΓÇ£CopyΓÇ¥ button to copy a selected resource(s) in the direction the arrows point. (The original stack is not changed by copying).
  64.  
  65. -  Click the ΓÇ£RemoveΓÇ¥ button to remove the selected resource(s) from the stack.
  66.  
  67. -  Click the ΓÇ£EditΓÇ¥ menu to select either 
  68. ΓÇ£Rename...ΓÇ¥ or ΓÇ£Renumber...ΓÇ¥ to rename or renumber the selected resource.  (A dialog box will appear prompting you for the new name or number.)
  69.  
  70. -┬áClick the ΓÇ£CloseΓÇ¥ buttons to close stacks that you have opened. (A stack must be closed before you can open another one in its place.)
  71.  
  72. -  Click the ΓÇ£PlayΓÇ¥ button to listen to a selected sound resource. Press Command-Period if you want to stop the sound before it finishes.
  73.  
  74. -  Click the ΓÇ£HelpΓÇ¥ button for help with ResCopy.
  75.  
  76. -  Click the ΓÇ£QuitΓÇ¥ button to exit the ResCopy program and return to HyperCard.
  77.  
  78. ***************************
  79.  
  80. B)┬áResCopy will not open any file that is already open, unless you open it as read-only (see next item).
  81.  
  82. C)┬áThe ΓÇ£OpenΓǪΓÇ¥ button defaults to displaying a list of HyperCard stacks only. Click ΓÇ£All resource files (read only)ΓÇ¥ in the ΓÇ£OpenΓÇ¥ dialog to display all resource files. Use this method to look at HyperCard itself, the System file, or any file that contains resources (like applications). These files are opened read-only, meaning that you can copy from them, but you cannot make any changes to them.
  83.  
  84. D)┬áOption-click the ΓÇ£RemoveΓÇ¥ button to avoid a warning alert.
  85.  
  86. E)┬áThe following command-key shortcuts are available:
  87. ┬á┬á┬á┬á┬á┬áCommand-R  ΓÇö  ΓÇ£RenameΓǪΓÇ¥
  88. ┬á┬á┬á┬á┬á┬áCommand-N  ΓÇö  ΓÇ£RenumberΓǪΓÇ¥
  89. ┬á┬á┬á┬á┬á┬áCommand-P  ΓÇö  ΓÇ£PlayΓÇ¥
  90. ┬á┬á┬á┬á┬á┬áCommand-?  ΓÇö  ΓÇ£HelpΓÇ¥
  91. ┬á┬á┬á┬á┬á┬áCommand-Q  ΓÇö  ΓÇ£QuitΓÇ¥
  92.  
  93. E)┬áTo install ResCopy into another stack (bash copy protection!), copy these resources:
  94.  
  95. (required)
  96. ┬á┬á┬á┬á┬á┬á┬áXCMD=10000 "ResCopy"
  97. ┬á┬á┬á┬á┬á┬á┬áDITL=10000 "ResCopy"
  98. ┬á┬á┬á┬á┬á┬á┬áDLOG=10000 "ResCopy"
  99. (optional)
  100. ┬á┬á┬á┬á┬á┬á┬áDITL=10001 "RC Help"
  101. ┬á┬á┬á┬á┬á┬á┬áDLOG=10001 "RC Help"
  102.                      
  103. F)┬áIf ResCopy finds the its two ΓÇ£HelpΓÇ¥ resources 
  104. (see above), itΓÇÖs ΓÇ£HelpΓÇ¥ button is highlighted. If it doesnΓÇÖt find the two resources, the button is disabled. You can tailor ResCopy for individual applications by modifying the text of the ΓÇ£RC HelpΓÇ¥ DITL using ResEdit.
  105.  
  106. G)┬áIf you wish to switch to another application while running MultiFinder, click the HyperCard icon in the upper right corner of the menu bar, or on larger monitors, click in one of that applicationΓÇÖs windows. When you switch back to HyperCard, ResCopy will still be active.
  107.  
  108. H) ΓÇó┬áΓÇó Messages ΓÇó┬áΓÇó
  109.  
  110. *┬áΓÇ£Convert sound to HyperCard format?ΓÇ¥ - When copying 'snd ' resources, ResCopy will convert the sounds to HyperCard format if they are not already in that format. Click ΓÇ£OKΓÇ¥ to do the conversion. Click ΓÇ£Convert allΓÇ¥ to avoid further prompts when copying multiple sounds. The sound in the original file is left unchanged.
  111.  
  112. *┬áΓÇ£I am missing some of my resources!ΓÇ¥ - One of the resources listed above as ΓÇ£requiredΓÇ¥ is missing from the current stack and the Home stack.
  113.  
  114. *┬áΓÇ£That file cannot be opened.ΓÇ¥ - There was a problem opening that file.
  115.  
  116. *┬áΓÇ£That file is locked or busy.ΓÇ¥ - ResCopy was unable to add a new resource to a file.
  117.  
  118. * ΓÇ£That number already exists! Enter another:ΓÇ¥ - The new number you entered for a resource is already assigned to a resource in that file.
  119.  
  120. *┬áΓÇ£Not enough memory to run ResCopy.ΓÇ¥ - ResCopy checks to see if there is at least 64K of free RAM. You can get this message if the RAM cache is turned up too high, or if you are running InBoxΓäó or TOPSΓäó. Turn off or disable one or more of these, or set the userLevel to 1 or 2 and try again.
  121.  
  122. *┬áΓÇ£Not enough memory to play sound.ΓÇ¥ - Just what it says.
  123.  
  124. *┬áΓÇ£Oops, not a playable Hypercard sound.ΓÇ¥ - This is a ΓÇÿtype 1ΓÇÖ sound resource that is not a digitized sound, or is in some other way incompatible with HyperCard.
  125.  
  126.  
  127. ***************************
  128.  
  129. Use this in good health!
  130.  
  131. -- part contents for background part 10
  132. ----- text -----
  133. Syntax:
  134.  
  135. Rescopy
  136. --or--
  137. ResCopy <fromFile>, <toFile>, <resType>, 
  138. <resIDnumber>
  139. --or--
  140. ResCopy <fromFile>, <toFile>, <resType>, 
  141. <resName>
  142.  
  143. If no parameters are passed, the Rescopy window will appear, which gives you a 'Font/DA mover' type interface to move resources.
  144.  
  145. Notes for scripted copying:
  146. ┬á┬á┬áa) you must supply the full pathname of 
  147. ΓÇ£fromFileΓÇ¥ and ΓÇ£toFileΓÇ¥ (you can use ΓÇ£the long name of this stackΓÇ¥ for the ΓÇ£from stackΓÇ¥, and use the ΓÇ£FileNameΓÇ¥ XFCN to allow the user to choose the ΓÇ£to stackΓÇ¥)
  148. ┬á┬á┬áb) you can specify a resource by either its name or ID number
  149. ┬á┬á┬ác) if by name the name must be in quotes
  150. ┬á┬á┬ád) if by number the number neednΓÇÖt be in quotes
  151. ┬á┬á┬áe) If a resource with the given name or number already exists, it is replaced
  152. ┬á┬á┬áf) If an error is encountered, the resource is not copied, a beep is sounded, and the HyperTalk global variable ΓÇ£the resultΓÇ¥ is set to ΓÇ£Error!ΓÇ¥ (otherwise it is empty)
  153. ┬á┬á┬ág) Scripted copying can be used on any type of file, not just HyperCard stacks
  154.  
  155.  
  156. -- part contents for background part 13
  157. ----- text -----
  158. 19
  159.  
  160. -- part contents for background part 30
  161. ----- text -----
  162. XCMD