Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Simple script question

Community Beginner ,
Mar 15, 2017 Mar 15, 2017

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

TOPICS
Scripting
433
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 15, 2017 Mar 15, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 16, 2017 Mar 16, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 16, 2017 Mar 16, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 16, 2017 Mar 16, 2017
LATEST

Thanks! Ill give that a try!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines