1 person found this helpful
the method duplicate() would do the job's first part.
the second is to remove the contents of the still threaded text frame and then:
remove the text frame.
Something like that, if a text frame is selected:
var textFrame = app.selection; var singledOutTextFrame = textFrame.duplicate(); textFrame.contents = ""; textFrame.remove();
See a before (top row) and after (bottom row) in the screenshot below.
The text frame holding the blue text was selected before running my snippet:
But i m working in vb.net and this duplicate() method is throwing error.
"Return argument has an invalid type"
What does this mean?
Sorry, I cannot help with vb.net, not even test something.
I'm on Mac OSX…
Ok. Thanks for the help