Copy link to clipboard
Copied
A quick question. Can the prompt window be relocated? And where can I find documentation on the prompt command? Many thanks!
You'll find the documentation for prompt() in the "User Interface Tools" chapter of the "JavaScript Tools Guide". Similar to @Charu Rajput, I don't think you can change its location. You can, however, create your own dialog window whose location you can change.
var input;
var w = new Window("dialog");
w.location = [100, 100];
var edittext1 = w.add("edittext", undefined, "");
edittext1.preferredSize.width = 300;
edittext1.active = true;
var button1 = w.add("button", undefined, "OK");
...
Copy link to clipboard
Copied
Can you post a screenshot or anytjing that would make it clearer as to what you are asking?
Copy link to clipboard
Copied
I know this is rather insignificant, but I find dragging the prompt window aside to see underlying data rather bothersome. So, I have been trying to see if I could set the location of the prompt window to a different location. Screen shot one is where the location of the prompt window defaults too. Screen shot two shows where I would like it to open. Hope this makes sense. Thank you for your attention and time!
Over and out, Kent
Copy link to clipboard
Copied
I don't think it is possible.
We cannot customize the position of the prompt as per my knowledge.
Copy link to clipboard
Copied
You'll find the documentation for prompt() in the "User Interface Tools" chapter of the "JavaScript Tools Guide". Similar to @Charu Rajput, I don't think you can change its location. You can, however, create your own dialog window whose location you can change.
var input;
var w = new Window("dialog");
w.location = [100, 100];
var edittext1 = w.add("edittext", undefined, "");
edittext1.preferredSize.width = 300;
edittext1.active = true;
var button1 = w.add("button", undefined, "OK");
button1.onClick = function () {
input = edittext1.text;
w.close();
}
var button2 = w.add("button", undefined, "Cancel");
w.show();
// ...
alert(input);
Copy link to clipboard
Copied
Thank you. This a wonderful. And please forgive me, this worked perfect exactly as written. My skill level of Illustrator Scripting is -1 on a scale of 1 to 10. However, I was able to understand what to change to fit my script. This is not the usual for me, so thanks again. Please keep this script availabele forever for all us nubes.
Outstanding!
Over and out, Kemt
Copy link to clipboard
Copied
JavaScript Tools Guide CC
https://extendscript.docsforadobe.dev/index.html
Copy link to clipboard
Copied
I don't think there is much you can do about that, it is determined by AI and I don't see anyplace in preferences where it can be changed.
Copy link to clipboard
Copied
Kinda what I thought. Thank you so much for everyone taking the time to look. I am greatful.
Over and out, Kent