home *** CD-ROM | disk | FTP | other *** search
/ LOGIC 2000 February / LogicCd--feb.2000-mac-cdr.iso / Apple II / CHANGEAFILE / CHG.FIL.DOC (.txt) < prev    next >
Encoding:
AppleWorks Document  |  1993-01-27  |  19.0 KB  |  321 lines  |  [p?/pdos]

  1. O=====<=======<===<=============================================================
  2. O========<=====<================================================================
  3. L- Strip Line Feed after Carriage Returng
  4. CHANGE-A-FILE
  5. Harold D. Portnoy
  6. ======================================================================
  7. Be sure to copy CHANGE-A-FILE before using!!!
  8. ---------------
  9. G     CHANGE-A-FILE is distributed partly FREE (5 utilities) and partly H
  10. Fas SHAREWARE (6 utilities). The following utilities are shareware and 
  11. require a password:
  12.      Convert AWP File to TXT File#
  13. Convert TXT File to AWP File"
  14. Convert AWP 3.0 to 2.x File,
  15. AWP File Doctor  - AWP repair utility,
  16. Exhume AWP File  - AWP repair utility,
  17. Restore ADB File - ADB repair utility
  18. The same password also unlocks the Auto-Restore functions of the H
  19. FAppleWorks file repair program, RESURRECTION, which can recover files )
  20. even when disk directories are damaged.
  21.      To obtain the password, send $10.00 to:
  22.        Change File
  23.        c/o Harold D. Portnoy
  24.        1431 Woodward#
  25.        Bloomfield Hills, MI 48302
  26. F     To obtain unlocked versions of Change-A-File and Resurrection on E
  27. Ca disk including documentation and password (for future versions), 8
  28. send $10.00 plus $4.00 for disk, postage and handling.
  29. REGISTERED SHAREWARE USERS: If your password contains control I
  30. Gcharacters then substitute the same regular characters for the control 
  31. characters in the password.
  32. **********************************************************************
  33. E     When an AppleWorks word processor or data base file goes bad is F
  34. Dnot the time to worry about how you are going to repair the damage. ?
  35. =AWP File Doctor and Restore ADB can repair these files. With H
  36. FRESURRECTION, which can restore files from a bad directory, virtually D
  37. Bany bad file can be restored. Each of these utilities, alone, are $
  38. worth the small fee in time saved.
  39. **********************************************************************
  40. CHANGE-A-FILE                                               -      -
  41. F     CHANGE-A-FILE is a batch file utility that reads AppleWorks Word I
  42. GProcessor (AWP) and text (TXT) files; converts AWP files to TXT files, G
  43. ETXT files to AWP files, and AWP 3.0 files to AWP 2.x files; restores G
  44. Edamaged AWP and ADB (data base) files; change file or auxiliary type G
  45. Ecodes, and strip or insert line feeds. Up to 88 files in a directory G
  46. Eor subdirectory can be altered. This program uses the ProSel format. I
  47. GCHANGE-A-FILE is particularly useful to the AppleWorks (AWKS) user and B
  48. to prepare files for uploading or alter files after downloading.
  49. Password
  50. CHANGE-A-FILE is a system file. When run, the user is initially E
  51. Cpresented with a password screen. Entering the password allows the H
  52. Fuser to access all of the program's utilities. If the password is not G
  53. Eentered only the first 5 utilities listed below can be accessed. The .
  54. locked utilities will be shaded in the menu.
  55. Activating protected utilities
  56.  and removing password screen
  57. Transfer Change-A_File, Resurrection, and the Password program H
  58. Fto any directory. The Password program can be used on all versions of F
  59. DResurrection, but only on version 4.14 or greater of Change-A-File. E
  60. CThe Change-A-File program should be re-named CF.SYSTEM. Run either =
  61. ;CF.system or Password. Password can be used independent of H
  62. FChange-A-File and can be used to unlock Resurrection alone. Enter the C
  63. Apassword. Change-A-File will be unlocked and the password screen I
  64. Gremoved. This is indicated by the notice 'CF.SYSTEM  unlocked'. Rename G
  65. Ethe file to CHANGE.FILE or any other name of your choice. If you use H
  66. FCF.system to unlock Change-A-File the password screen will be removed H
  67. Fwhether you have the correct password or not. If you use the Password I
  68. Gprogram, the screen is removed only if the password is correct. If you I
  69. Genter the password, all the utilities will be able to be used. If not, 5
  70. only the 'free' utilities will be able to be used. E
  71. If RESURRECTION is placed in the same directory as CF.SYSTEM, C
  72. Athe Auto-Restore functions will also be unlocked on entering the F
  73. password. This is indicated by the notice 'RESURRECTION  unlocked'. 
  74.  Menu
  75. The program menu is as follows:;
  76.          ________________________________________________
  77. Q- Quit
  78. V- View"
  79. F- Change File Info!
  80. L- Strip Line Feed)
  81. C- Strip Control Character"
  82. I- Insert Line Feed%
  83. X- AWP 3.0 to 2.x File&
  84. W- AWP File to TXT File&
  85. T- TXT File to AWP File!
  86. E- Exhume AWP File!
  87. D- AWP File Doctor"
  88. R- Restore ADB File;
  89.          ________________________________________________
  90. E     The appropriate utility can be selected from the main menu with I
  91. Gthe light bar selector, by entering the appropriate letter or by using G
  92. Ethe mouse. Pressing RETURN, a letter or the mouse button accepts the 
  93. selection.
  94.  Directory Selection
  95. E     The volume directory name is the initial default directory. The G
  96. Edefault source directory or destination directory can be accepted by H
  97. Fpressing RETURN or mouse button. Any directory online can be entered. I
  98. GThese directories will remain the default directories until changed or I
  99. Gthe program is quit. The TAB key tabs to the next slash in a directory G
  100. Epathname and then to the end of the pathname. Control-X switches the H
  101. Fsource and destination directories. Control B or N move the cursor to H
  102. Fthe beginning or end of the line. Control E inserts characters at the I
  103. Gcursor. The DELETE key deletes the character to the left of the cursor 9
  104. while control D deletes the character under the cursor.F
  105. Alternately, the prefix can be selected by pressing the Closed H
  106. FApple (Option) key. A list of directories is presented from which one H
  107. Fcan be selected in a manner similar to that in AppleWorks (AWKS) 3.0. C
  108. AThe up and down arrows or the mouse move the light bar selector, =
  109. ;RETURN or the mouse button selects a subdirectory and Open D
  110. BApple-RETURN accepts the completed directory name. If an error is 4
  111. made, pressing TAB lets you restart the selection.
  112. File Selection
  113. A     Files are selected or deselected with the spacebar or mouse D
  114. Bbutton. A check mark is placed in front of the selected file. The G
  115. Elight bar can be positioned using the four arrow keys or mouse. When H
  116. Fusing the spacebar or mouse button to select a file, the selection is H
  117. Fmade in the direction first initiated. Entering Control A selects all E
  118. Cthe files. After selecting the desired files, press RETURN. ESCape &
  119. always returns you to the main menu.
  120. The Utilities
  121. Convert AWP 3.0 to 2.x file.H
  122.     Usually AWP files generated by Appleworks 3.0 cannot be read H
  123. Fby versions 2.1 and below. If you do not have version 3.0, an AWP 3.0 G
  124. Efile can be read by your version of Appleworks by converting the AWP H
  125. F3.0 to an AWP 2.x file. The suffix ".X" is added to the file name. If @
  126. >the original name is greater than 13 characters, the last two H
  127. Fcharacters are replaced with the suffix. This utility is particularly E
  128. Cuseful for those AWKS 3.0 users who would like to upload AWP files +
  129. that can be read by all versions of AWKS.E
  130. C     The AWP 3.0 file is not converted if it is already compatible I
  131. Gwith the AWP 2.x format and the source and destination directories are D
  132. Bthe same. This is indicated by a bell and a diamond replacing the 
  133. check mark.
  134. Convert AWP to TXT file.G
  135. E     This utility converts AWP files into text files. In preparation I
  136. Gfor uploading, each line is followed by a carriage return. If you want I
  137. Ga carriage return only at the end of a paragraph, press the Open Apple /
  138. and RETURN keys when indicated on the screen.G
  139. E     The text file created is designated by the suffix ".W" added to H
  140. Fthe original file name. The original file is preserved. The auxiliary  
  141. file code is changed to $0000.
  142. Convert TXT to AWP file.G
  143. E     This utility converts TXT files into AWP files. The conversion, H
  144. Fparticularly of multiple files, is considerably faster than using the F
  145. DAppleWorks from text file option. The new file is designated by the D
  146. Bsuffix ".T" added to the original name. The original file is left F
  147. Dundisturbed. When loaded into AppleWorks, the file may not properly =
  148. ;word wrap. This is easily corrected by changing any margin 
  149. justification. 
  150. AWP File Doctor.H
  151. F     When an AWP file is damaged, it cannot be loaded into AppleWorks G
  152. Einstead the 'Getting error trying to read ...' message is displayed. C
  153. AThe AWP File Doctor will almost always restore the non-corrupted F
  154. Dportions of an AWP file to a new file that can be loaded into AWKS. @
  155. >The restored file has the suffix ".D" added to the file name. F
  156. DAsterisks replace the bad bytes, however, if the bad bytes are text H
  157. Fcharacters, these characters may be displayed. The characters usually H
  158. Fmake no sense and are easily identified. Except for the damaged text, $
  159. the new file requires no revision.F
  160. D     If the file is loaded into AWKS 2.x and the 'Getting error .." G
  161. Emessage is still displayed, first convert the file to AWP 2.x format >
  162. using Convert AWP 3.0 to 2.x, reload the file and try again.
  163. Exhume AWP.G
  164. E    If the file is so damaged that AWP File Doctor cannot repair it, G
  165. Ethen Exhume AWP should be tried. Exhume AWP restores the AWP file by @
  166. >searching for text characters. The restored file contains all H
  167. Fcharacters in the text character range. Thus text characters that are @
  168. >not part of the original text will be included (frequently an A
  169. ?additional character at the beginning and end of a text line). F
  170. DNon-text characters are replaced with an asterisk. If the number of A
  171. ?characters exceeds 79 only one line of asterisks is added. The ;
  172. repaired file has the suffix ".E" added to the file name.G
  173. E     The exhumed file when loaded into AWKS must be edited to remove E
  174. Cspurious characters and add any text that may have been corrupted. I
  175. GThis is the hard part of the repair, but usually not as hard as having )
  176. to rewrite the whole file from scratch.H
  177. F     It is suggested that a damaged AWP file be processed by both the I
  178. GAWP File Doctor and Exhume AWP. The former will reconstruct almost all H
  179. Fof the file in a form requiring virtually no revision. The latter may $
  180. extract a few more words of value.
  181. Restore ADBH
  182. F     If an AppleWorks Data Base (ADB) file is corrupted, the file can G
  183. Ebe restored with Restore ADB. Damage can occur within a category, to B
  184. @individual records or to the header. Damage limited to within a G
  185. Ecategory is flagged with an asterisk. If one or more categories have D
  186. Bbeen damaged, the entire record (or contiguous records) cannot be G
  187. Erestored and the first category in the record(s) is flagged with the E
  188. Cmessage '** DAMAGED RECORD(S) **'. When this message occurs as the ?
  189. first record, a report record may actually have been damaged.H
  190. F     If the file header is damaged, a standard header is substituted, A
  191. ?which contains 30 categories. Category names may or may not be G
  192. Erestored depending on whether the names were damaged. Report formats I
  193. Gwill be lost and have to be reentered. Occasionally, if the file still I
  194. Gcannot be loaded into AWKS after processing with Restore ADB, the file I
  195. may still be restored by forcing the standard header. This can be done A
  196. ?by pressing the Closed Apple (Option) key when the ADB file is @
  197. >selected. Except for the first category, which will be titled F
  198. 'Category
  199. 1', all the remaining category names will be hyphens.     H
  200. ______________________________________________________________________
  201. D     NOTE: AWP File Doctor, Exhume AWP and Restore ADB will restore H
  202. Ffiles with bad blocks. The message '** BAD BLOCK **' is inserted when F
  203. Da bad block is encountered. These utilities cannot repair a file if F
  204. Dthe volume directory or subdirectory are damaged (and sometimes the H
  205. Ffile index blocks pointing to the data blocks in the file). If one of F
  206. Dthe directories is damaged, I suggest using the ProSel utility, Mr. (
  207. &Fixit or my new utility, RESURRECTION.B
  208. If you have a file that cannot be restored and the various I
  209. Gdirectories are intact, please send it to me so that I can improve the I
  210. Galgorithms used in the AWKS and ADB repair utilities. Copy the disk on H
  211. Fwhich the file exists using a nibble copying utility such as Copy II+ &
  212. and send the copy, not the original.E
  213. Occasionally, when several blocks have been damaged, AWP File F
  214. DDoctor will produce a new file that cannot be loaded into AWKs. Try I
  215. Gusing AWP File Doctor again on the new file. This will usually restore #
  216. the file. If not, use Exhume AWP.H
  217. ______________________________________________________________________
  218. View file.E
  219. C     This utility will read any file with word-wrap. It works best A
  220. ?with text files. Control characters are presented in uppercase F
  221. Dinverse. If the file is an AppleWorks word processor (AWP) file (AW H
  222. F3.0 and lower versions), it will automatically read it properly. This I
  223. Gallows you to rapidly review TXT or AWP files in order to determine if #
  224. you wish to use or convert them. G
  225. View no longer scrolls. Reading the scrolling screen has always I
  226. Gbeen a problem for the handicapped, and an impossibility for those who G
  227. Euse an accelerator chip. The spacebar allows you to step through the F
  228. Dfile twenty-one lines (one screen) at a time. The RETURN key aborts E
  229. Cthe file. Any other key allows line by line step through. The left ,
  230. margin is automatically set for AWP files.A
  231. For convenience, the file may be output to a printer. The E
  232. Cprinter output is set to slot 1. If you use a different slot, then E
  233. Cchange the low nibble of byte $04 (C1) to the slot number. This is H
  234. Fmost easily accomplished using a block editing utility such as ProSel C
  235. ABlock Warden. Alternately the following patch will suffice after =
  236. setting the prefix to the directory containing CHANGE.FILE.
  237. POKE 768,19n  (where n = slot number + 2)1
  238.      
  239. BSAVE CHANGE.FILE,TSYS,A$300,L1,B4
  240. Change file info.A
  241. ?     Any file type can be altered. You are responsible for the G
  242. Ealteration. No checking is done. Following selection of the file(s), H
  243. Fthe previous file type is presented at the cursor and can be accepted D
  244. Bas the default by pressing RETURN. Alteration can be accomplished D
  245. Busing the designated file type abbreviations displayed (e.g. BIN, ?
  246. =TXT). Or, if the abbreviation is not listed, by entering the $
  247. hexadecimal code (e.g. $04, $06). H
  248. F     After the file type code is accepted, the auxiliary type code is G
  249. Epresented and can be altered by entering the appropriate code at the I
  250. Gcursor. When the auxiliary type code is governed by the file type code C
  251. A(e.g. SYS always loads at $2000), the appropriate default can be 2
  252. accepted by pressing RETURN or the mouse button.I
  253. G     The file access code can then be altered. The file can be toggled H
  254. Flocked or unlocked, or each of the recognized bits in the byte can be 9
  255. 7separately toggled. The bits are 7 (Destroy-enable), 6 F
  256. D(ReName-enable), 5 (BacKUp-needed), 2 (INVisibility, GS/OS only), 1 G
  257. E(WRiTe enable), 0 (ReaD-enable). If the bit is set (1), then the bit G
  258. Eis enabled. If cleared (0), then the bit is disabled. If bits DES,RN H
  259. Fand WRT (7,6,1) are all set, then the file is considered unlocked. If H
  260. Fany of these bits are cleared then the file is considered locked. The D
  261. Bright and left arrows and the mouse move the cursor. The spacebar F
  262. Dtoggles whether the file is locked or not as well as the individual H
  263. bits. The RETURN key or the mouse button accepts the displayed values.E
  264. C     NOTE: The changes in this section are not written to the file H
  265. until the final RETURN. ESCape always sends you back to the main menu.
  266. Line feed stripper.E
  267. C     This utility strips line feeds that follow a carriage return. ?
  268. Only text files are accepted. The original file is preserved.A
  269. For those wishing to read from the UNIX system, press the I
  270. GOpen-Apple as well as the return key at the informational screen. This 3
  271. will convert all line feeds to carriage returns. :
  272. The altered file is designated with an ".L" suffix.
  273. Strip control character.E
  274. C     A specific control character or all control characters can be D
  275. Bremoved. If the specified control character is 'M' (e.i. carriage D
  276. Breturn), then a space is substituted for the carriage return. The G
  277. Econtrol character strippers designate the altered file with the ".C"     
  278. suffix.
  279. Insert line feed after carriage return.?
  280. Some users apparently wish to communicate with Big Blue H
  281. Fmachines. This utility inserts a line feed after each carriage return H
  282. in a text file, which is required by IBM and IBM compatible computers.:
  283. The altered file is designated with an ".I" suffix.
  284. F     When converting files or stripping a control character with only F
  285. one disk drive, the source and destination volumes must be the same.
  286. Icons
  287. E     CF.RES.ICONS contains Change-A-File and Resurrection icons. The G
  288. EChange-A-File icon is courtesy of Karl Bunker. To use these icons in G
  289. Ethe Finder, place CF.RES.ICONS in the ICONS subdirectory of the boot H
  290. Fvolume (BOOT.VOLUME/ICONS/CF.RES.ICONS) and reboot.  The two programs 7
  291. must have file names of CHANGE.FILE and RESURRECTION.
  292.      Suggestions, bugs and other trivia to:
  293.         Compuserve [75156,2436]
  294.         GEnie [H.PORTNOY]
  295. O========<=====<================================================================
  296. All rights reserved.
  297. AppleWorks, copyright Claris Corporation
  298. ProSel, copyright Glen Bredon2
  299. Copy II+, copyright Central Point Software, Inc.
  300. Recent version updates:5
  301. 3.00- Correct minor bug in directory input.C
  302. 3.01- Correct bug in filetype listing when over 66 files."
  303. 3.02- Minor improvement.0
  304. 3.03- Correct bug in Restore ABD File.3
  305. 3.05- Correct bugs in directory selector.)
  306. 4.0 - Major revision in format.5
  307. 4.01- Correction of bug when used on IIC's.@
  308. 4.02- Correction of bug in control character stripper.0
  309. 4.03- Correction of bug in TXT to AWP.C
  310. 4.04- Correction of bug in TXT to AWP and printer output.B
  311. 4.05- Controlled scroll and word-wrap in View plus other#
  312.  minor impovements.7
  313. 4.06- Some minor bug corrections and changes.8
  314. 4.1 - Improved recovery of ADB report formats.3
  315. 4.11- Bug fix in Strip Control Character.?
  316. 4.12- Password works correctly with Resurrection 2.7.&
  317. 4.14- Improved password use..
  318. 4.15- Minor bug fix in ProDOS input.%
  319. 4.16- Bug fix in Repair ADB+
  320. 4.17- Bug fix in Change File Info
  321.