How to access the Text Frame, when we use scrollable frame,
[ Nav ]
@Nav_alm – that it's a bit spartanic what you offer here as a question…
But let's try:
"Scrollable Frame" indicates DPS, but I don't know what "Text Frame" you want to access.
Is it INSIDE that "Scrollable Frame"?
var myTextFrameInside = myScrollableFrame.textFrames;
would access the FIRST (counting by index) of all text frames inside of the scrollable frame.
That's the same question:
how can I access something (a page item) on a page…
Answer: you need something unique in that object you can get a handle on.
Or you use the selection a user of your script is doing and work with that selection…
A "scrollable frame" is nothing special. What it makes it a "scrollable frame" is the DPS software.
So you have to look for attached labels on the object, that identify the object for the PDS plug-in "Overlay Creator" as a "scrollable frame". That's possible with the "extractLabel("KeyString")" function. But you need to know the appropriate key-string in advance.
In another of your thread in the DPS forum, I basically answered the question how to obtain those key-strings.
When knowing the key-string you could loop through all your page items (you can skip all text frames) in the allPageItems-collection, to identify the "scrollable frame" by extracting the right label.
If you have more than one "scollable frames" you need a second unique identifier for the particular object.
That could be nearly any property.
Keep in mind, there is no "scrollableFrames" collection in the DOM !
Europe, Middle East and Africa