This is fantastic Russ, thanks! I do confess that I'm unfamilar with extendscript, but can work with java, which it looks identical to. Can you please let me know where I execute this from or point me to a good tutorial?
Much obliged!
-Mike
Hi Mike,
You can find lots of samples for beginners here:
FrameMaker ExtendScript Samples - West Street Consulting
To answer your immediate question, you should be able to just:
1 - Select File > Script > New Script.
2 - In the ExtendScript toolkit editor, you should get a blank script file. Paste the script I gave you into that file.
3 - Because the code I gave you is encapsulated in a function, you'll need to add the following line to the beginning of the file to execute it:
searchAndReplaceMarkerText();
4 - Make sure the desired file is open in FrameMaker and click the Run button in the editor.
Note that you need to have FM2019 fully updated for this to work. There was a bug in the initial release version where the File > Script > New Script command did nothing.
Hope this gets you somewhere.
Russ