Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Setting language to No Language

Return to Member Forum

  • Author
    Posts
    • #92078
      Anonymous
      Inactive

      I am using InDesign CS6 and writing scripts in JavaScript. I have a template with some paragraph styles defined. In my script that generates a document from this template, I need to change the language of some paragraph styles to [No Language]. I have tried lots of different statements, but nothing will let me change it. How is this done?

      Thanks!

    • #92083
      Anonymous
      Inactive

      Here are some of the statements I’ve tried:

      1. myDoc.paragraphStyleGroups.item(“Calendar”).paragraphStyles.item(“Month”).appliedLanguage = myDoc.paragraphStyleGroups.item(“Calendar”).paragraphStyles.item(“Dates”).appliedLanguage;

      Worked.

      2. myDoc.paragraphStyleGroups.item(“Calendar”).paragraphStyles.item(“Month”).appliedLanguage = “English: US”;

      Invalid value for set property ‘appliedLanguage’. Expected LanguageWithVendors, Language or String, but received “English: US”.

      3. myDoc.paragraphStyleGroups.item(“Calendar”).paragraphStyles.item(“Month”).appliedLanguage = “English”;

      Invalid value for set property ‘appliedLanguage’. Expected LanguageWithVendors, Language or String, but received “English”.

      4. myDoc.paragraphStyleGroups.item(“Calendar”).paragraphStyles.item(“Month”).appliedLanguage = myDoc.languages.item(“No Language”);

      Invalid value for set property ‘appliedLanguage’. Expected LanguageWithVendors, Language or String, but received nothing.

      5. myDoc.paragraphStyleGroups.item(“Calendar”).paragraphStyles.item(“Month”).appliedLanguage = app.languagesWithVendors.item(“No Language”);

      Invalid value for set property ‘appliedLanguage’. Expected LanguageWithVendors, Language or String, but received nothing.

      6. myDoc.paragraphStyleGroups.item(“Calendar”).paragraphStyles.item(“Month”).appliedLanguage = app.languagesWithVendors.item(“[No Language]”);

      Invalid value for set property ‘appliedLanguage’. Expected LanguageWithVendors, Language or String, but received nothing.

    • #92094

      Hi Dan,

      maybe this is helpful: https://forums.adobe.com/message/4073579#4073579

      For me this is working: curDoc.paragraphStyles[3].appliedLanguage = “$ID/[No Language]”;

      Kai

    • #92095
      Anonymous
      Inactive

      Your suggestion works for me too. I thought I had tried that already, but evidently I didn’t. Thanks very much for your help!

    • #92171
      Masood Ahmad
      Participant
Viewing 4 reply threads
  • You must be logged in to reply to this topic.
Forum Ads