Paul MR wrote:Could you please explain why you would need to run one action for landscape and another for portrait?
Thanks for the reply.
Well, the reason it would be a nice feature, is that I have two different actions (i.e. Action A-land, Action B-port), each is specifically made for a portrait, or a landscape image. The "third" (C-choose, then run) action that I do have now does the trick (I call up the script in that action, then run Adobe's batch processor), in that it calls up a script that is able to differentiate from the two orientations.
- Code: Select all
app.displayDialogs = DialogModes.NO;
var strtRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
var actionfolder = 'MY actions MIXTURE';
var portrait = 'PROOF VERT B&W + 720px + 1/2 album 720';
var landscape = 'PROOF HOR B&W + 720px + 1/2 album 720';
if (activeDocument.height > activeDocument.width)
// alert('small'); // or issue a message
app.doAction(landscape,actionfolder); // you could point at another action here
preferences.rulerUnits = strtRulerUnits;
The only problem with this is that it doesn't have the ability to keep the same file structure as your picture processor, which is a great feature. After I run my action, it only puts it all in one folder, which I then have to manually structure again.
I hope that makes sense. If you have any further questions, or points of clarification you need from me, please don't hesitate to ask.
P.S. Hmm. Maybe I didn't answer your question correctly, after rereading the question. I need one action for each orientation because in "MY actions MIXTURE" actions, each "play"s other orientation specific actions in my action folder. For example:
MY actions MIXTURE action:
- Horizontal copyright stamp > Play Horizontal-stamp > Play Horizontal header > Play Horizonal footer > Play Horizontal-border > Save
and, of course, the other action would be:
- Vertical copyright stamp > Play Vertical-stamp > Play Vertical header > Play Vertical footer > Play Vertical-border> Save
It's probably not the cleanest, or most efficient way of doing things, but it's the only way I know how to at the moment. Hope that helps. Thanks.