Table inside text frame
Hello, I would like to extract table by table and place it within a text frame and then adjust the frame to the content and paste it back in its original place to finally apply an object style to it.
| app.selection.length > 0 | |
| app.cut() | |
| app.paste() | |
| app.selection[0].parentTextFrames[0].select(); | |
| app.selection[0].fit (FitOptions.FRAME_TO_CONTENT); | |
| app.cut() |
finally I would have to paste it in its place of origin
Can anyone please help me here? I'm trying to learn scripting but some of these things still confuse me. Thanks.