Objects and properties, and methods and parameters
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Objects and properties, and methods and parameters
- This topic has 7 replies, 5 voices, and was last updated 6 years, 7 months ago by Radhakrishnan Radhakrishnan.
-
AuthorPosts
-
-
August 24, 2017 at 1:34 pm #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.
-
August 24, 2017 at 4:25 pm #97059Ariel WaldenMember
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…
-
August 25, 2017 at 3:58 am #97061Robert PlochMember
I like this link very much :-)
https://www.indesignjs.de/extendscriptAPI/
I is very helpful and it is indexed.
-
August 25, 2017 at 4:00 am #97062Robert PlochMember
… 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
-
August 25, 2017 at 4:41 am #97063Masood AhmadParticipant
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 :)
-
August 25, 2017 at 7:44 am #97066David BlatnerKeymaster
Here is an article from Jongware that explains it well:
https://creativepro.com/javascript-for-the-absolute-beginner.php -
August 25, 2017 at 8:17 am #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. -
August 25, 2017 at 8:36 am #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.
-
-
AuthorPosts
- You must be logged in to reply to this topic.