Copy link to clipboard
Copied
Hi all
I am new to writing scripts so please bare with my stupidity. I am trying to write a script for use in indesign to automate a really menial task. I want to replace the straight speech marks in the font proxima nova with curved ones from the glyph menu. I just need help getting started with writing the script, can anyone help?
Thanks
Copy link to clipboard
Copied
Hi, there may be a simpler way than a script to accomplish this task:
1. Set InDesign preferences to curly quotes
2. Use Find and Replace to replace (Find: " and Replace: " yes, same character")
Thx Stefan
Copy link to clipboard
Copied
Thanks Stefan, yes that would be simpler but its for a wide array of corporate branding where we need to ensure that the wrong quotes are not used so I think a script is the best way to ensure this.
Copy link to clipboard
Copied
Just for starter.. it will change all straight quotes into left curly quotes
app.findGrepPreferences = null; app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat="~'";
app.changeGrepPreferences.changeTo = "~[";
app.changeGrep();
HTH,
K
Copy link to clipboard
Copied
Thanks! Ill give that a try!