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?
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.
Copy link to clipboard
Copied
Yes, such panels can be coded and already exists: Action Launcher (Free)
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:
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.
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' 😉
Copy link to clipboard
Copied
Too easy! ;]