home *** CD-ROM | disk | FTP | other *** search
- /* $VER: TTM-DToolReplace.rexx 1.0 (16.11.98) by J. Tierney
-
- TTManager Default Tool Replace v1.0
- 11/16/98 J. Tierney <jtierney@cyberlink-inc.com>
-
- Purpose: Replaces the default tool with a user's preferred tool.
-
- Usage: TTM-DToolReplace.rexx
-
-
- Expanding:
- dtool.<n>.find = The name of a tool (without any path info.) to get rid of.
- dtool.<n>.replace = The tool you prefer to use.
- */
-
- dtool.0.find = 'More' /* Name of tool to match. */
- dtool.0.replace = 'SYS:Utilities/xMore' /* Replacement tool. */
-
- dtool.1.find = 'PPMore'
- dtool.1.replace = 'SYS:Utilities/xMore'
-
- dtool.2.find = 'AmigaGuide'
- dtool.2.replace = 'SYS:Utilities/Multiview'
-
- /*
- -- Copy and fill in the following lines to expand TTM-DToolReplace.rexx. --
-
- dtool..find = ''
- dtool..replace = ''
- */
-
-
-
- /* --- Program Begins Here --- */
- OPTIONS RESULTS
- ADDRESS 'TTMANAGER'
-
- 'GetDefaultTool'
- crnttool = result
- IF result = '' THEN EXIT
-
- x = LASTPOS('/', crnttool)
- IF x = 0 THEN x = LASTPOS(':', crnttool)
- IF x ~= 0 THEN crnttool = SUBSTR(crnttool, x + 1) /* Strip path. */
-
- DO i = 0 UNTIL dtool.i.find = 'DTOOL.' || i || '.find'
- IF dtool.i.find = crnttool THEN DO
- 'SetToolType' dtool.i.replace
- EXIT 0
- END
- END
-
-