Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Action selection gui

New Here ,
Sep 06, 2021 Sep 06, 2021

Copy link to clipboard

Copied

Is it possible to create a script that would open a GUI of specific actions that the user has loaded in PS?

Basically I have 7 actions that all do similar (but not identical) operations, instead of asking people to manage all 7 actions, can I run a script, from which the user can select which action to use?

TOPICS
Actions and scripting, macOS

Views

70

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 06, 2021 Sep 06, 2021

Copy link to clipboard

Copied

Using scriptListener, you would record the playing of one action to get the code. Then make a function with the code to just replace the name of the action. Then all you do is create the UI with however many buttons you want and assign an onClick function to each button that calls the action playing function and sends it the proper name.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 06, 2021 Sep 06, 2021

Copy link to clipboard

Copied

Yes, such panels can be coded and already exists: Action Launcher (Free)

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 06, 2021 Sep 06, 2021

Copy link to clipboard

Copied

As suggested by others it is possible.

 

A script has to be executed/run. While the script is running, you can't do anything else in Photoshop, except use the script interface to select your action. When the script OK button is pressed, the script UI will close and the action will be run, allowing you to then use the standard Photoshop interface. The reason I mention this is to set expectations.

 

A mockup of a basic interface, which could either reference installed actions by set/name or the action could be converted to script code so that the script is self contained without relying on an action set being loaded:

atn-script-mockup.png

A more complex, working example script here: Action Finder.jsx

 

The extension that @PECourtejoie linked to uses a script, however, it is wrapped in an "extension" floating panel which offers the added benefit that it can remain open and behave like other native interface elements.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 06, 2021 Sep 06, 2021

Copy link to clipboard

Copied

With in-build BridgeTalk you can 'do anything else in Photoshop', so:

'it can remain open and behave like other native interface elements' 😉

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 06, 2021 Sep 06, 2021

Copy link to clipboard

Copied

LATEST

Too easy! ;]

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines