How to with script add rectangle frame tool
app.activeDocument.rectangles.add Rectangle Tool adding
but I want adding Rectangle Frame Tool (isn't rectangle tool)
also where, the current, active page How can I add
app.activeDocument.rectangles.add Rectangle Tool adding
but I want adding Rectangle Frame Tool (isn't rectangle tool)
also where, the current, active page How can I add
Try now,
var doc = app.activeDocument;
doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
var currentPage = doc.layoutWindows[0].activePage;
currentPage.rectangles.add({geometricBounds:[0,0,100,100], contentType:ContentType.GRAPHIC_TYPE}) //It adds the rectangle on the current page
currentPage.textFrames.add({geometricBounds:[100,0,200,100]})//It adds the textframe on the current page
Regards,
Chinna
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.