Questions tagged [adobe-scriptui]

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…

56 questions
0
votes
1 answer

How do I add listbox to tab1 and something else in tab2?

Here is my code and I can't seem to get Listbox or anything to show up. I found the main code posted on other forums. I only added the Listbox code however I cannot seem to see any of my objects visible, not sure what’s happening. var dlg = new…
asdzxc
  • 1
  • 1
0
votes
1 answer

Indesign Script UI: Dynamic Add Text Edit Fields before OK-Cancel Buttons

I'm trying to show a script ui window that will add another group of input fields IF the user clicks an Add Another button instead of the OK or Cancel buttons... I got it to kind of work... ie I can show a simple, two group, ui window (group 1 = 1…
A Zook
  • 37
  • 7
0
votes
0 answers

Toggle Open Close Master and Modular Panel

var seg1 = true; var seg2 = true; var seg3 = true; function segOne() { if (seg1 == true) { seg1 = false; //do close panel seg 1 } else { seg1 = true; //do open panel seg 1 } } function segTwo() { …
0
votes
2 answers

How can I create the resource string without a big string?

In After Effects scripts, if you want your script to be able to be docked in the program's workspace, the only way to do it as far as I know is to use a resource string like this: var res = "Group{orientation:'column', alignment:['fill', 'fill'],…
0
votes
0 answers

Passing variables to jsx

I have a rather nice jsx file that creates mixed inks swatches. It pops a ui that lets users select what sheet size, swatch shape, swatch size, starting color, ending color, increment steps, etc. I am new to html etc. and need to figure out how to…
user7806247
0
votes
1 answer

ScriptUI - How to get EditText old text with changing event listener?

As described in ScriptUI reference, there are 2 ways to implement changing listener on EditText: editText.onChanging = function() { ... } editText.addEventListener('changing', function(event) { ... }) However, the function is triggered…
Hendra Anggrian
  • 5,780
  • 13
  • 57
  • 97
0
votes
1 answer

save InDesign ScriptUI options in file and load in the next run

I built a Dialog in InDesign script that has any options. I want to save the settings the user selects in a file (For example in a file named setting.ini) to do not require a re-adjustment in the next run and the same settings are enabled for the…
ha a
  • 63
  • 7
0
votes
1 answer

Problem with creating reactangle inside an onClick()-function // InDesign Javascript

I'm having a little problem with an JS script in InDesign. I want to place an empty rectangle when clicking on a button. The creation outsite the onClick()-function works fine, but when I copy the exact code inside the onClick, it doesn't…
Alex
  • 11
  • 3
0
votes
2 answers

ScriptUI: Script works alone, but not when called from UI button

* Edited to make Issue Clearer * I've created a tool in Extendscript for Adobe Illustrator that will align and proportionately resize a selected group with a selected object named "Guide". The below code is the script, which works when run on it's…
0
votes
1 answer

Photoshop scripting; dialogue box to open multiple documents, but getting "undefined"

I have a dialogue box that allows the user to browse for one PSD file and then to browse for multiple TIF files. When browsing for multiple TIF files, the text in the edittext box comes out as undefined. Where as, if I just remove the ability to…
0
votes
2 answers

How do I detect if a button was clicked with a keyboard key pressed? (Ctrl-click, Alt-click etc.)

I'm trying to write a UI for an Adobe After Effects script. I want to add a functionality where a user can CTRL click a button instead of just clicking it with no keypresses to get a slightly different behavior. The problem is, however, I don't to…
0
votes
0 answers

Manual Layout of children of a Tabbed Panel in ScriptUI

I'm writing a script in ExtendScript and need to have tons of checkboxes on a panel inside a tab, I can't split the panel into groups because I need to get the length property of the group. I was wondering if anyone had experienced an issue with…
Robinsper
  • 79
  • 7
0
votes
3 answers

Capture user's click: InDesign scripting

I'm trying to come up with a script that presents the user with a simple dialog box with three options: "Yes", "No" and "Cancel". Based on the user's input the script then produces two different kinds of pdfs (Special Report / Online PDF) or exits…
0
votes
0 answers

ExtendScript - Use Arrow Keys to shift focus from searchbox to list

I have the below script: picked = myItems (['item 1', 'item 2', 'item 3', 'item 4', 'new item 1', 'new item 2']); function myItems (templates) { var w = new Window ('dialog {text: "Item List", alignChildren: "fill"}'); var entry = w.add…
0
votes
1 answer

Photoshop ScriptUI: Show a dialog window, close it, show it again gives an empty full size window

In my script for Photoshop CC 2015 (Windows 10), written in JavaScript, I am processing all layers of the active document in a loop and want to show a setup dialog in each step. For simplification, take the following working example. The window is…
Flo
  • 219
  • 2
  • 10