JS: finding replacing special characters ID desktop / ID Server
Hi,
Is there a differnce in the find / replace routines between desktop and server version of InDesign? I know it should work the same way as in the interface, and it does work when running on the desktop version.
I'm trying to replace a character sequence (a previously "encoded" indent to here) with the real "indent to here" special character.
This works in desktop as well as server versions:
app.findTextPreferences.findWhat = "roof-i";
app.changeTextPreferences.changeTo = "roof-a";
app.changeText();
(replacing the word "roof-i" with the word "roof-a")
But this does not work, nothing happens in the Server version:
app.findTextPreferences.findWhat = "roof-i";
app.changeTextPreferences.changeTo = "^i";
app.changeText();
However, on my client tests with the script, the word roof-i becomes the real indent to here special character, just as when writing ^i in the find/change dialogue.
Is there something special to regard when replacing special characters on the server version. I've also tried using the grep version, changeTo set to ~i instead, but with the same results (nothing happens on the server).
Best regards,
Andreas Jansson
