Quote:
Originally Posted by Cameraken Hi Danny.
Thanks for your help.
The action you have created does work.  |
My pleasure. Glad it worked.
Quote:
|
I did not realise this would be possible with an action. I assumed I would need script.
|
The fact your images were "pre-rotated" is what made an action (only) solution possible. Had this not been the case, engaging a script would have been necessary to automatically rotate images that needed to be rotated 90 degrees within a batch process.
Quote:
|
The big advantage of script over actions is that they are very easy to edit.
|
...that's assuming one can get the script working to begin with. One of the challenges is understanding enough about programming to write your own scripts or at least copy/paste or cobble together snipets of code written by others.
The other challenge is script compatibility, or lack thereof, of a given script across versions. Since PS7 Adobe has "upgraded" the JS libraries a couple times which amounts a script written under Photoshop 7 may or may not run under CS, CS2 or CS3 and vice versa, which is probably what bit you here.
Once a script is working I agree that changing command settings can usually be done easily in Notepad or other text editor.
Quote:
|
Although I am not sure if it's possible to use scripts and batch together.
|
It's definitely possible. The way it usually works is to record an action that "calls" (plays) one or more scripts, then invoke the action via the Batch command.
The other way is to write your own or use a pre-written script that is fully functional and independent, like "Image Processor" (a JS installed starting with CS, or maybe it was CS2). These types of scripts don't need Batch. The script dialog is similar to Batch where one specifies Source and Destination folders and other script-specific options.
Quote:
As you may have guessed this is for web page pictures. Square images are much easier to handle.
I simplified my question because I thought I could just alter the script for different sized images but I also need thumbnail and medium images as well. And actions are not easily editable.
|
Hmmm... not sure what you mean here. Most of the time the settings in a given action step can be modified by double-clicking the step, entering new values or move slider controls as needed, click OK and the step is modified.
Further considerations...
Option A: I found this site that has specific If-then-else JS code for PS7.
http://www.hanfordlemoore.com/photoshop/index.htm
Option B: If that does not work for you and/or you want to spell out all the specifics of where you want to go/what you want to do, perhaps a couple actions would be the way to go.
* Specific image sizes, e.g., 600 px x 600 px - What others?
* (new) File name examples
* anything else you can think of
I'll be glad to help if I can.