Skip to main content
Participant
May 11, 2010
Question

How to get the language of the running InDesign?

  • May 11, 2010
  • 2 replies
  • 371 views

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

This topic has been closed for replies.

2 replies

ErwinS61Author
Participant
May 12, 2010

Dear Marc,

thank you for your quick response.

Yes, that is exact also working in VB.

Regerds

Erwin

Marc Autret
Legend
May 11, 2010

In JS you can use a locale-independent string:

myParaStyle.kerningMethod = "$ID/Optical"

Maybe it will work in VB...

@+

Marc

http://www.indiscripts.com