Tracking/Kerning using grep in script
Hi
I want to give a tracking value of 100 after an opening paranthesis and before closing paranthesis but I want to do this using a script.
I already have a grep query in place for after opening parenthesis: (\x{0028})(?=\S) and replace is empty. Just add tracking value of 100. If its possible to add kerning value, it will be very good.
The grep query for closing parenthesis: (\x{0029})(?=\s) but there the tracking is not working as expected. It is increasing tracking after the closing parenthesis, I want tracking before closing parenthesis.
My first preference would be using kerning. I already have Peter's script in place, which works just fine.
Actually I need this because I want to include it in another script.
I have come up with this :
doc = app.activeDocument;
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.NOTHING;
app.findGrepPreferences.findWhat = '(\x{0028})(?=\S)';
app.changeGrepPreferences.changeTo = "how to add tracking/kerning here";
doc.changeGrep();
How can I include this in a script?
Thanks
