Skip to main content
Known Participant
March 29, 2023
Answered

get a textframe's content

  • March 29, 2023
  • 1 reply
  • 438 views

Hello all,

            I have some texframes with content [or] texts on it. 

            how to store a textframe's content in adobe indesign using java script. so, that i can used to alert the contens.

 

 

Thanks.

This topic has been closed for replies.
Correct answer Peter Kahrel

You asked a similar question in https://community.adobe.com/t5/indesign-discussions/alert-contents/m-p/13687714, and the response 'What exactly do you mean?' still stands, because your query here is still mystifying.

 

But here's a shot. The place a text frame's content in an alert window, do this:

// Select a text frame, then

alert (app.selection[0].contents);

P.

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
March 29, 2023

You asked a similar question in https://community.adobe.com/t5/indesign-discussions/alert-contents/m-p/13687714, and the response 'What exactly do you mean?' still stands, because your query here is still mystifying.

 

But here's a shot. The place a text frame's content in an alert window, do this:

// Select a text frame, then

alert (app.selection[0].contents);

P.

John_devsAuthor
Known Participant
March 29, 2023

Thanks for support @Peter Kahrel