Hallo Silke, Du hast den richtigen Befehl in der richtigen Weise eingefügt – aber an der falschen Stelle. ;-) Es handelt sich dabei wie bei wholeWord:false um eine Suchoption und diese stehen als Gruppe in geschweiften Klammern nach den Suchen- und nach den Ersetzen-Einstellungen: text {findWhat:"Ps. "} {changeTo:"Ps.^<"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true, wholeWord:false, caseSensitive:true } Siehe auch die Dokumentation in der Beispielliste von FCBL:
Zitat //FindChangeList.txt //A support file for the InDesign CS3 JavaScript FindChangeByList.jsx // //This data file is tab-delimited, with carriage returns separating records. // //The format of each record in the file is: //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description // //Where: //<tab> is a tab character //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use). //findProperties is a properties record (as text) of the find preferences. //changeProperties is a properties record (as text) of the change preferences. //findChangeOptions is a properties record (as text) of the find/change options. //description is a description of the find/change operation // //Very simple example: //text {findWhat:"--"} {changeTo:"^_"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double dashes and replace with an em dash. // //More complex example: //text {findWhat:"^9^9.^9^9"} {appliedCharacterStyle:"price"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find $10.00 to $99.99 and apply the character style "price".
(Dieser Beitrag wurde von Martin Fischer am 1. Mai 2013, 10:09 geändert )