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
7
votes
3 answers

Photoshop Scripting - Update Progress Bar in a Window

I want to show a progress bar for one of my Photoshop scripts. If I do work inside a button click event then I'm able to update the progress bar without any problems. For this script, no user interaction is required. I want to: - Show the Window …
bendytree
  • 13,095
  • 11
  • 75
  • 91
3
votes
2 answers

Javascript/ExtendScript/ScriptUI temporary window message

This should be relatively simple. While writing a script for Adobe InDesign CS6, I'd like to have a window/palette appear briefly—say, about two seconds— to notify the user that the end of the script was reached successfully. How can I go about…
Sturm
  • 689
  • 2
  • 23
  • 52
3
votes
1 answer

How to detect shift down when clicking on ScriptUI button?

On my scriptUI panel, I have a button. How can I detect whether the user is holding the shift key when they click on the button?
bgmCoder
  • 6,205
  • 8
  • 58
  • 105
3
votes
2 answers

Photoshop UI Radio buttons in javascript

Having problems implementing radio buttons. I know radio buttons in CS2 can be problematic but I'm not sure where I am going wrong. I suspect I have a bracket or comma in the wrong place; but can't see it. Thank you. var dlg = "dialog {text:'Script…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
2
votes
2 answers

extendscript after effects listbox if statement not working well

i have listbox item_1 and item_2 and more but for the sake of it this is enough. this is my code when listbox item_1 is selected and item string is item_1 then fire the code for that only. listBox.onDoubleClick = function () { //alert…
hans
  • 129
  • 7
2
votes
1 answer

InDesign Script not working when dialog window is added

I am trying to create a script based on GREPs that replaces fonts in non-latin characters with a compatible font, but when I add it to a dialog window it does not work anymore (it works by itself). I have identified the point where it stops running…
2
votes
1 answer

Photoshop Scripting: How to add an event listener to the ScriptUI windowObj

I want to add an event listener to the windowObj that on keydown, calls a function. I can not get this to work on the window object; however, I can get it working after a child of the window object (a button for example), has been clicked. I've also…
Uncle Slug
  • 853
  • 1
  • 13
  • 26
2
votes
1 answer

Photoshop/ESTK - Predefined numeric value treated differently than user input

First off, I'm on a desktop with OS X 10.9 & a macbook with OS X 10.10 with the latest version of Photoshop & ESTK. Which as of right now is: Photoshop CC 2015529.r.88 x64, ESTK 4.0.0.1 - ExtendedScript 4.5.5 & ScriptUI 6.2.2. Results are the same…
Terus
  • 203
  • 3
  • 12
2
votes
2 answers

JavaScript dialog return

I've got a JavaScript function that draws a dialog. I'd like to have it return the value the user specifies. The problem is, the dialog is closed when a user clicks on of two buttons, which have onClick events assigned to them. The only way I know…
2
votes
1 answer

InDesign ScriptUI windows disappearing immediately after appearing

It's been a while since I've had a problem with ExtendScript / ScriptUI that's boggled me enough that I've had to turn to the experts here. I suppose that means I'm learning! :~) The following is a snippet of code that I'm trying to get to work. …
Sturm
  • 689
  • 2
  • 23
  • 52
1
vote
1 answer

Why does InDesign lose all keyboard ability if a scriptUI palette is open?

Salvete! I have a simple InDesign script to display a palette window. Problem is, when I display this window, or any other scriptui palette, InDesign loses all keyboard focus - I just can't type anything. It's as if the script palette eats all my…
bgmCoder
  • 6,205
  • 8
  • 58
  • 105
1
vote
1 answer

extendscript after effects 2022 resize the buttons

I need to resize my buttons as it is taking up space. I draw a custom 6 button mock image onto the original image. I want all my buttons to be layed out like that 3 buttons on each line. var w = new Window('dialog', "ALL IN ONE TOOLBOX 2022", u); …
hans
  • 129
  • 7
1
vote
1 answer

Extendscript After effects how do I add button listener and execute a code

I have run this code in After Effects 22 using ExtendScript and I am new to all this. This script adds a listbox with 2 buttons (add/remove). My goal is: add textbox 2 textbox value = new solid click add button and add the string value of the…
hans
  • 129
  • 7
1
vote
1 answer

ScriptUI - Integer number in slider percentage

I have a script that shows a dialog window with a slider bar, next to a static text. The text shows the percentage of the slider bar (0 to 100). The problem is that the percentage is shown in decimals, while I would need it to show them in integers,…
1
vote
1 answer

Extendscript dropdownlist item color

Does anyone know if you can change the color of the text for specific items in a dropdown list in Adobe's extendscript ScriptUI? I know about the color section of the Script UI guide, however that says nothing about list items and I tried a few…
Spencer
  • 1,931
  • 1
  • 21
  • 44
1
2 3 4