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

How to get the language of the running InDesign?

New Here ,
May 11, 2010 May 11, 2010

Copy link to clipboard

Copied

Hi,

in my CS3 VB Script there is a a statement:

myParaStyle.KerningMethod = "Optical"

this code runs unter CS3 with English and German version of InDesign unchanged.

Now, with CS4, InDesign wants as parameter the strings "Optical" for Englissh, and "Optisch" for the German version.

How do I find out the language, InDesign is runnung?

P.S. Why is the parameter implementet as string and not as Identifier?

Thanks

Erwin

TOPICS
Scripting

Views

329

Translate

Translate

Report

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 ,
May 11, 2010 May 11, 2010

Copy link to clipboard

Copied

In JS you can use a locale-independent string:

myParaStyle.kerningMethod = "$ID/Optical"

Maybe it will work in VB...

@+

Marc

http://www.indiscripts.com

Votes

Translate

Translate

Report

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
New Here ,
May 12, 2010 May 12, 2010

Copy link to clipboard

Copied

LATEST

Dear Marc,

thank you for your quick response.

Yes, that is exact also working in VB.

Regerds

Erwin

Votes

Translate

Translate

Report

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