Objects and properties, and methods and parameters

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Objects and properties, and methods and parameters

Viewing 7 reply threads
  • Author
    Posts
    • #97057

      Hi there,
      Is there any exhaustive list of Objects and its properties, Methods and parameters documented anywhere?

      I am asking this with respect to InDesign, JavaScript in Windows.

      Thanks in advance.

    • #97059
      Ariel Walden
      Member

      Sure — open ESTK (ExtendScript Toolkit), and hit F1 to open the object viewer. Select InDesign in the dropdown on the left, and you’ll see it all…

    • #97061
      Robert Ploch
      Member

      I like this link very much :-)

      https://www.indesignjs.de/extendscriptAPI/

      I is very helpful and it is indexed.

    • #97062
      Robert Ploch
      Member

      … and if you like a graphic version of some of most important indesign DOM elements see this:

      https://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzreferenz.pdf

    • #97063
      Masood Ahmad
      Participant

      The ExtendScript Toolkit is all you need. However, if you need more, I would suggest vising this valuable resource:

      https://www.jongware.com/idjshelp.html

      Oooooppps! that’s a lot much :)

    • #97066
      David Blatner
      Keymaster

      Here is an article from Jongware that explains it well:
      https://creativepro.com/javascript-for-the-absolute-beginner.php

    • #97068

      Thank you very for the replies to all…

      But still…

      Ok, I should have explained more. Below is my code to Create a Character Style.

      function CreateCharacterStyle(myCharacterStyleName){
      var myDocument = app.documents.item(0);
      try{
      myCharacterStyle = myDocument.characterStyles.item(myCharacterStyleName);
      myName = myCharacterStyle.name;
      }
      catch (myError){
      myCharacterStyle = myDocument.characterStyles.add({name:myCharacterStyleName});
      }
      }

      Fantastic…
      But, If I need to set the Font Family, Character Color, etc to the CharacterStyle, how to setup? What are the Properties to be setup for the Object?

      I am still unable to find out from he references.
      Thank you in advance again.

    • #97069

      Sorry,

      I should have seen better….

      I got the answers to my query…

      appliedFont and fillColor are there… Got it from the references given above.

      Thank you.

Viewing 7 reply threads
  • You must be logged in to reply to this topic.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo