For questions about Adobe's ScriptUI component - the object model for creating custom windows and user-interface elements within an Adobe application. When using this tag also include the [extendscript] tag, Please also provide the tag for the application that you are targeting for context, e.g. [photoshop], [adobe-indesign], [adobe-illustrator], etc…
Questions tagged [adobe-scriptui]
56 questions
1
vote
1 answer
Problems with Photoshop's onChanging function
I'm trying to change some label text depending on the state of a checkbox for Photoshop Script UI. Only it's not updating at all. No idea why.
Ideally I'd like it to say "Some text" when ticked and "Some other text" when left unchecked. And change…

Ghoul Fool
- 6,249
- 10
- 67
- 125
1
vote
1 answer
Illustrator script (or action) to make 1 random layer visible per group
Similar to this question but with adobe Illustrator: Photoshop action to make 1 random layer visible within each group
I want to use an illustrator script (or action) to generate images that are composed of a random sampling of grouped layers.
With…

Kevin Forney
- 13
- 2
1
vote
1 answer
Indesign 2020 ScriptUI add text frame
I have a problem with a script for Indesign 2020.
I am not a programmer and don't know javascript (I just created some simple script).
I want to create a simple panel with a button that add a textframe, but doesn't seems to work.
Here's the code
…
user17280916
1
vote
1 answer
Is there a way to import functions from an external file when scripting in Adobe Illustrator (JSX)?
I am writing a script that contains many functions. Ideally I would like these functions to be stored in utils.js file. And the main.js would import these functions from there and use them. The problem is that the standard javascript methods can not…

Alina
- 41
- 6
1
vote
1 answer
Folder.selectDialog different behaviour on Mac and Windows
My problem is when I select the folder using the following code, the behaviour of the selectDialog is different on Mac and Windows. On Mac, the finder window that comes up shows files in present in the folder but on Windows it does not show files in…

Charu Rajput
- 653
- 3
- 15
1
vote
2 answers
Is possible to lock certain keys in keyboard during input in "edittext" box - Photoshop script CS6?
I want to enable only keyboard input of keys: + - [0-9] , and disable rest of keys input in edittext box.
Also if edittext has already any , character, I want to block any further key , input.
var mainWindow = new Window("dialog");
var edittext =…

Lukkar
- 111
- 1
- 9
1
vote
1 answer
Edittext arrows [Indesign Script]
I am trying to create an edittext (Indesign scripting) with arrow buttons next to it to edit the value, like this one:
Now is just a simple code to draw a edittext.
var w = new Window('palette', "Palette");
var editText = w.add("edittext",…

Diogo Ferreira
- 29
- 4
1
vote
1 answer
Javascript Run progress bar while code is executed
I have a script that is working fine but can take a lot of time to complete.
This is a javascript document and runs several functions.
This script runs within InDesign and is javascript based. The ExtendScript Toolkit provides several demoscripts…

Interactive
- 1,474
- 5
- 25
- 57
1
vote
1 answer
set focus of edit text in extendscript
I have a javascript that goes through the layers list in Adobe Illustrator and changes the name based on the input by the user.
There are 2 'edittext' text boxes for input, the first is the name you want to search, and the second is the one you…

Lloyd Smith
- 77
- 3
- 16
0
votes
0 answers
I was wondering if there is a way to use Adobe Illustrator's curvature tool as a script
I have to connect pathpoints with a natural curve with script.
I know that it is possible using the curvature tool, but I couldn't find a way to use it in a script.
Is there any way to use curvature tool in a script?
I know how to create curves…

JWBae
- 1
0
votes
1 answer
ScriptUi - Buttons not responsive with a palette
After many attempts I managed to create a working custom progress bar, even if customizing it with the OnDraw command, it flickers (I still don't understand why, maybe it could be the continuous redraw with the update command).
I wanted to add a…

IDJSGUS
- 97
- 7
0
votes
2 answers
ScriptUi custom shape button with OnDraw
I wrote a script with a dialog with custom round buttons (something like the official adobe ones).
Being ignorant of mathematics, I drew the button with straight lines, like this:
ButtonPanel ();
function ButtonPanel () {
var Panel =…

IDJSGUS
- 97
- 7
0
votes
0 answers
how can I manipulate ScriptUI state in Illustrator based on document state instead of button click?
Trying to hide a button depending on current document name. If the document is open then the button is hidden else display button.
The current code is not displaying the button at all.
if(!app.documents.length){
add_group_Ai();
}
else{
…
0
votes
1 answer
Photoshop - Stop a script from a nested function
I have a problem that you may be able to clarify for me.
I'm updating an old script with a menu made in ScriptUI who has a button (this is just an example, the final script will have more buttons).
I was advised to put the menu inside a function,…

IDJSGUS
- 97
- 7
0
votes
1 answer
extendscript cant align button or center button below listbox
My button is floating on top of the list box. I want it to sit right under the list box.
I will be adding more buttons and just want to know why this is not working.
If anybody can assist on this will be grateful.
var objDlg = new Window ("dialog",…

asdzxc
- 1
- 1