![]() ![]() ![]() The sub-routine included in the following example script ( replaceWordWithStringInBodyText) is designed to work with long documents, by targeting the search and replace process at the paragraph-level, reducing the amount of text a script processes at a time. The current Pages scripting dictionary does not contain a search command, so editing long text flows efficiently requires the use of a script sub-routine optimized for that purpose. In addition to creating new documents, scripts may be called upon to edit existing documents, including locating and replacing words in the main body text. ![]()
0 Comments
Leave a Reply. |