ReplaceText Text Command

REPLACETEXT Text Commands

Searches for a text string and replaces it with another string.

replacetext

not implemented yet

 

ReplaceText  Command Definition  url:PGScmd/replacetext
  created:2006-03-30 20:08:13   last updated:2006-03-30 20:08:13
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For ReplaceText
Dan Kilroy wrote...2006-05-03 18:27:55

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Replace the {...} .

ReplaceText ([FIND string] [REPLACE string] [ALL] [ALERT][ERROR] [DIRECTION FORWARD|BACKWARD] [WHOLEWORDS TRUE|FALSE] [CASESENSITIVE TRUE|FALSE] [IGNOREACCENTS TRUE|FALSE] [DOCUMENT document | CHAPTER document:... | PAGE document:...-pagenum | MPG document:...-masterpage:side | ARTICLE article | WINDOW document-window])


Parameters:


Results:


Notes:
WINDOW will search the current article for the specified the window


See Also:


Examples:
Python:


ARexx:

Applescript:

Tim Doty wrote...2007-07-01 12:04:48

Docs say "not implemented yet" but it is at least partially implemented. The command itself works and the keyword 'ALL' is recognized. However the direction cannot be specified (at least, as documented and variations thereof). The default direction is 'FORWARD' and is the only direction possible -- interestingly 'BACKWARD' is not available from the GUI so it is possible that it is simply not implemented.

Note: finding of text to replace is from the current text cursor position. If the desire is to replace all of a certain text in an article use TextCursor('BOA') before this command.

User Contributed Comments For ReplaceText