Hi cbishop01,
you could try this with reading out the bounds of a page and use the resulting array for the geometricBounds of an added text frame. The corner radius of a text frame is defined in four pairs of properties. Here an example with the top right corner on page 1:
var doc = app.documents[0];
var page = doc.pages[0];
page.textFrames.add
(
{
geometricBounds : page.bounds ,
fillColor : "None" ,
strokeColor : "Black" ,
strokeWeight : "1Pt" ,
strokeAlignment : StrokeAlignment.INSIDE_ALIGNMENT ,
topRightCornerRadius : "10mm" ,
topRightCornerOption : CornerOptions.ROUNDED_CORNER
}
);
For all other needed properties see the DOM documentation compiled by Gregor Fellenz:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#about.html
There could be complications if the pages are transformed, but for an ordinary document this should work.
Regards,
Uwe Laubender
( ACP )