Accessing scriptclasses from within the sdk
Hi,
I' m wondering if it is possible to access the classes that are available thru the scripting api. Example:
In javascript i could write (this is just an example):
var doc = app.documents[0];
var storyList = doc.stories;
var tsrList = storyList[0];
var myTextStyleRange = tsrList[0];
To do the same thing in the sdk, you need a lot more code. The sdk has even no equivalent, out of the box, for the object "TextStyleRange".
In fact, what is presented as a "TextStyleRange" object to i.e. JavaScript, this has probabely a wrapper class in the sdk that keeps track of the indexes in a ITextModel with a continuous range of same layout characteristics. My point is: every object or function in JS must be mapped with 'something' in the sdk.
It would be nice if it was possible to use those 'somethings' from within the sdk to simplify things. Often, i don't need all the detail the sdk offers me. If i just want to move a pageitem from x,y to a,b i have to access details in the sdk that are 'overhead' for the 'simple' thing i want to do.
So, is there a possibility to do this? Is this somewhere documented? Are there reasons not to do it?
Any thoughts would be much appreciated!
Thanks in advance,
Bart Devos.