Setting findTextPreferences is not working
hi!
i have old script (written in javascript) developed indesign cs3.
it worked in version of indesign.
now moving indesign cc, started adapt script.
it seems script stopping in following line of code:
app.findtextpreferences = nothingenum.nothing;
does know going on?
i printing console sure line. here code:
$.writeln('remove: a');
$.writeln(typeof app.findtextpreferences + ' - ' + typeof nothingenum.nothing);
app.findtextpreferences = nothingenum.nothing;
$.writeln(typeof app.findtextpreferences + ' - ' + typeof nothingenum.nothing);
$.writeln('remove: b');
app.changetextpreferences = nothingenum.nothing;
$.writeln('remove: c');
app.findtextpreferences.appliedcharacterstyle = thematization_style_name;
$.writeln('remove: d');
app.changetextpreferences.changeto = '';
$.writeln('remove: e');
myparagraph.changetext();
$.writeln('remove: f');
app.findtextpreferences = nothingenum.nothing;
$.writeln('remove: g');
app.changetextpreferences = nothingenum.nothing;
$.writeln('remove: h');
the output in console is:
remove: a
object - object
i have admit discouraging work extend script.
i expected version improve issues , feeling did not happen.
and worse, things have stopped working.
thanks help.
kind regards!
i've moved on scripting forum. should faster here.
More discussions in InDesign Scripting
adobe
Comments
Post a Comment