siva conditional

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

canvasdesign
Posts: 1
Joined: Fri Jul 05, 2024 8:51 am

siva conditional

Post by canvasdesign »

Has anybody got a copy of this script or a similar version?

Wanting to run an action based on the filename

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

User avatar
Stephen_A_Marsh
Posts: 37
Joined: Sun Aug 04, 2019 12:37 pm

Re: siva conditional

Post by Stephen_A_Marsh »

That's pretty easy without Siva's script, without any GUI:

Code: Select all

if (app.activeDocument.name == "Untitled-1") {
    app.doAction("Action 1", "Action Set 1");
} else {
    //app.doAction("Action 1", "Action Set 2");
}
A GUI is easy enough to add either using a simple filename prompt() or even scriptUI. Scripting the GUI selection of the action set and action is obviously harder.

I'll dig up the code on the script that you are asking for as I have it in an archive.
Last edited by Stephen_A_Marsh on Sat Jul 06, 2024 2:11 am, edited 1 time in total.
User avatar
Stephen_A_Marsh
Posts: 37
Joined: Sun Aug 04, 2019 12:37 pm

Re: siva conditional

Post by Stephen_A_Marsh »

http://actionlogic.blogspot.com

I have attached the .jsx script in .zip compressed format.
Attachments
Siva's Photoshop Conditional Action.zip
(9.07 KiB) Downloaded 9 times