I have a script that takes the selected text box and fills it with placeholder text, it works well. The
Problem I'm trying to solve is that when I create the text box the cursor is placed inside the box and the script
won't run until I de-select and select the frame. I would like to eliminate this step so I can create the box and just run the
script. It would be the last text frame created.
Any idea how I would do this?
something on the lines of:
// do stuff with that frame.
the last created text frame on the page would be the text frame with the highest ID number on that page.
Also, if you start with a selection like an insertion point, Vamitul's suggestion is spot on.