I am looking for a piece of applescript where the user is asked to select a specific frame in InDesign and then copy its contents into another document. I use this to create a new structured document within a script.
I have made a script where i ask the user to select a frame with
display dialog "Selecteer kop" buttons {"OK", "Nee", "Cancel"} default button "OK"
if button returned of result is "OK" then
if class of item 1 of selection is in {rectangle, oval, polygon} then
Problem is when i run this part i can't select in InDesign a frame and then go on with my script.