Copy link to clipboard
Copied
Hi,
can someone please help me with a simple script;
I would like to run a script on multiple opened files (jpegs).
I am alredy working with actions, but there are two different actions, depending of the image orientation.
So the script should be simple, something like this:
- if opened image width>height - run action1
- if not, run action2
Actions alredy close images after execution so this script shod go through all opened files.
This would save me a lot of time..
Thanks!
B.
@bojanp66203338 – Photoshop offers a limited set of Conditional Actions and Landscape Orientation is one of the options. In this example image taken from another discussion, the content of the Landscape or Portrait action is for image size, but it could be anything:
You can then use Batch to run the conditional action over all open documents.
A similar recent topic here:
...
Copy link to clipboard
Copied
This is the Using the Community forum (which is the forum for issues using the forums).Please tell us what Adobe application you are using so that this can be moved to the proper forum for help.
Scroll down here to see a list of the forums:
https://community.adobe.com/
Copy link to clipboard
Copied
Sorry.. My post should be in Photosop section, How to..
Thanks!
B.
Copy link to clipboard
Copied
@bojanp66203338 – Photoshop offers a limited set of Conditional Actions and Landscape Orientation is one of the options. In this example image taken from another discussion, the content of the Landscape or Portrait action is for image size, but it could be anything:
You can then use Batch to run the conditional action over all open documents.
A similar recent topic here:
You could create/use a script, however, the insert conditional action command will do the job.
EDIT: Here it is in legacy ExtendScript –
if (app.activeDocument.width > app.activeDocument.height)
{
app.doAction("Action1","Set1");
}
else
{
app.doAction("Action2","Set1");
}
Copy link to clipboard
Copied
Hi, this is it, it works like a charm!
Thank you sooo much!
B: