you don't need a script for that, just press M to get the rectangle tool, click anywhere in the document and you'll get the dialog you need, enter your values. done.
Thank you for your reply.
But I need Dialogbox. I actually made something big system.
If I can receive value from User, I can make big system.
I want dialogbox. please help.
open a document before running
var idoc = app.activeDocument; var title = "Rectangle Maker"; var width = Number(prompt ("Enter Width", 100, title)); var height = Number(prompt ("Enter Height", 50, title)); var rectangle = idoc.pathItems.rectangle(0, 0, width, height);
Message was edited by: CarlosCanto
Thank you so much.
I will use your sourcecode usefully.
Have a good day.