home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-02-18 | 2.5 KB | 52 lines | [TEXT/MPS ] |
- # The tools included in this package (NewFindTool and NewREplaceTool)
- # are intended to replace the standard MPW Find and Replace menu commands.
- # They do this by maintaining (as standard, editable text files) previous
- # search and replace strings, and presenting these saved strings in scrollable
- # lists in the NewFind and NewReplace dialogs. On my own system, I have
- # given the "new" commands the standard command key equivalent, and
- # used ResEdit to remove the command key assignments from the built-in
- # commands.
-
- # The NewFind and NewReplace have all the functionality of the standard
- # MPW menu commands with one exception: they lack the wrap-around search
- # option. The remaining search options are fully supported, and the scripts
- # are executed so that changes made to the search backward, ignore case, etc.
- # options are saved and used by the standard MPW menu commands. Pressing the
- # shift key when selecting Find, Replace, etc. will temporarily reverse the
- # search direction, just like the standard menu command. Command-. will
- # cancel the command and close the dialog box, Return or Enter will select
- # the default (highlighted) button. Text copied from the current window may
- # be pasted into the dialogs' text edit boxes, and text cut, copied, and pasted
- # between the text edit boxes.
-
- # These tools consitute much enhanced versions of some pure script-based enhancers
- # that I previously uploaded (Extras.sit). They are also a faster, bug-fixed version
- # of the previously uploaded NFind.sit.
-
- # Note that the make files included with the source code use the -opt full compiler
- # option introduced with MPW 3.2. Users of previous compiler versions will want to
- # omit this option.
-
- # Brian Clark
- # CServe 71241,2407
-
- # add NewFind and NewReplace
- Set FindStrings "{MPW}"FindStrings
- Set ReplaceStrings "{MPW}"ReplaceStrings
- Set LastFindString "{MPW}"LastFindString
- Set LastReplaceString "{MPW}"LastReplaceString
- Set FindAgainScript "{MPW}"FindAgainScript
- Set ReplaceAgainScript "{MPW}"ReplaceAgainScript
- Export FindStrings
- Export ReplaceStrings
- Export LastFindString
- Export LastReplaceString
- Export FindAgainScript
- Export ReplaceAgainScript
- AddMenu Find '(-' ''
- AddMenu Find 'Find <I/F' 'Begin; NewFindTool; Execute "{FindAgainScript}"; End'
- AddMenu Find 'Find Same <I/G' 'Execute "{FindAgainScript}"'
- AddMenu Find 'Replace <I/R' 'Begin; NewReplaceTool; Execute "{ReplaceAgainScript}"; End'
- AddMenu Find 'Replace Same <I/T' 'Execute "{ReplaceAgainScript}"'
-
- # end of Add to UserStartup