In javascript, how do I open a dialog so that the user can input the value of a variable?
I'm working on a script that will be used for many images, all of them using the same format (size of the image, layer layout, etc).
All of these images will have a layer of text, and what I want is to have the script modify the horizontal length of the text layer (horizontal percentage scale), shrinking it so that all of the text appears on-screen, in case there's too much of it.
But the text will vary from image to image, and what I want is for the script to display a dialog box were the user can input the text that will be put on the text layer and scaled down.
Can this be done?
