home *** CD-ROM | disk | FTP | other *** search
- WebChange.Script
-
- ; This is the find & replace script
-
- ; Presently seperated from the main script due mistake in script code wrt
- ; conditions. (To be rectified in due course)
-
- Set Prompt.Response To "Yes"
- ; First ensure this variable is 'set' (="yes")
-
- If Null(Replace.ChangeTo_1) Then Prompt "This will delete all occurences of your source text"
- ; If the replacement text is empty, the user is warned - replacing
- ; something with nothing is deletion!
- ; The prompt command sets Prompt.Response to "Yes" or "No"
-
- If Set(Prompt.Response) Then RunProcess Content.Replace
- ; So, if the user clicked "ok" (or if there was a valid replacement
- ; text) the replacer program is run.