skip to Main Content

I am trying to create a script for drawing a frame around my photographs. I already have actions that will do that, but they’re not perfect. I always have to tweak them after the frame is created.

The main fundamental problem I see with actions is that there can be no user interface. I want the user to be able to select parameters such as frame size, color, line width, and so on, before the frame is actually drawn. I would also like to give the user the ability to save their selections and recall them the next time the script is used.

The PhotoShop Scripting Guide just has a tiny section at the end about user interfaces. It says "Adobe provides the ScriptUI component, which works with the ExtendScript JavaScript interpreter to provide JavaScript scripts with the ability to create and interact with user interface elements." And it provides this link. But that link only goes to a page that describes, very incompletely, recent changes to that component. Can anyone tell me where I can find documentation that will teach me to use that component?

And in case it matters to anyone, I posted this identical question on Reddit.

2

Answers


  1. The most comprehensive source is the ScriptingUI for Dummies pdf book by Peter Kahrel.

    There’s also an amasing WYSIWYG editor by Joonas Pääkkö — it makes the process so much easier.

    Login or Signup to reply.
  2. There is also the scriptUI from Adobe.

    And funnily enough, in the Adobe document, it states: "If you want to create your own ScriptUI dialogs but reading this guide is too much for you, head for Joonas Pääkkö’s excellent dialog builder at https://scriptui.joonas.me/"

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search