Copy link to clipboard
Copied
Hello all,
I have a doubt.
I have 5 different texframes with some text on it.
How to alert the stories one by one using java script?
Thanks in advance!
var myStories = document.stories;
for (var i = 0; i < myStories.length; i++){
alert(myStories[i].contents);
}
Hi @John_devs ,
how about using a Story Editor window?
Select the frames and just hit Cmd + y (Mac) or Ctrl + y (Windows) on the keyboard.
You would be able to see overset text as well.
From my German InDesign:
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
Would you post your script?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
var myStories = document.stories;
for (var i = 0; i < myStories.length; i++){
alert(myStories[i].contents);
}
Copy link to clipboard
Copied
It worked, thanks buddy!
Copy link to clipboard
Copied
Hi @John_devs ,
how about using a Story Editor window?
Select the frames and just hit Cmd + y (Mac) or Ctrl + y (Windows) on the keyboard.
You would be able to see overset text as well.
From my German InDesign:
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
thanks for the effort @Laubender ..., It helped.