Hi,
I do have Photoshop and GraphicConverter and Canon File Viewer utility. I need to write an Applescript that tells either of these applications which folder to select, then turns all raw files into jpegs and saves them on a different folder as specified by the script (without user interaction). Any suggestions?
I have the digital rebel but I am only concerned with the raw images. I already have a script for the jpegs. Graphic converter does the conversion but it seems to ignore the orientation of the photographs (EXIF date). But I am desperate to get this to work, so if Photoshop cannot do it I would like to use Graphic converter anyway.
I’m confused, maybe you can clear this up: you are shooting using RAW images, but not having the camera make JPG’s? The JPG’s the camera makes are apparently already rotated, at least that’s what it sounds like: http://www.canoneos.com/digitalrebel/operation/feature4.html
Anyhow, if you still need to rotate the jpegs sing the exif info: likely what you need is ‘Image info’ which is a scriptable EXIF app. Along with that you would need something like jhead to do the rotation for you. GraphicConverter might be able to read EXIf, and if it does you should be able to use it to do all the work.
Chek the latest version of ‘iView Media Pro’, that might be able to auto-rotate jpegs as well.
Thank you for your suggestions. I did not mean to get caught up in the rotation issue. Don’t think about it for a moment. To re-clarify:
I know how to batch process a folder of raw images to turn them into jpegs. This can easily done in Photoshop by writing an action, opening the batch window, telliing Photoshop to run the action and specifying which the target folder is. Via AS I can tell Photoshop tu run the action, BUT I NEED THE SCRIPT TO TELL PHOTOSHOP WHERE THE SOURCE FOLDER IS. This is the problem. This way the script can run by itelf WITHOUT user interaction telling Phtoshop where the source folder is. This is what I am trying to do. The exact folder path will be stored in the clipboard (if this makes thinkgs easier)
As for Photoshop, I have not done any scripting with it, but you it sounds to me that what you need is a droplet or a Script menu script.
This will put the path of the folder you have selected, in the Finder, into the clipboard:
tell application “Finder”
get selection as alias
set the clipboard to (the result) as text
end tell
I think what you need is to run a script (or drop the foler on a droplet) which figures out the folder location, you can then have it open the files and ask Photoshop to do it’s action script.
Hi Dave,
Thanks for all your time with this. This does not work either. I already had the folder path in the clipboard. The problem is that in order to run an action you have to tell Photoshop where the folder is. That’s what I cannot figure out.
I don’t have Photoshop, but there are 2 PDF’s of the Applescript Dictionary on macscripter.net… which version are you using?
Maybe you could cheat and tell photoshop to make changes to the file and save it with a different name like graphic.edited.jpg and then move all the ‘edited’ files later, with a script?
How about saving the action from Photoshop as a droplet and then using this code:
set the_droplet_path to "path:to:droplet"
set the_folder to "path:to:folder:"
tell application "Finder" to open {the_folder as alias} using (the_droplet_path as alias)
Dave, I cannot tell you how psyched I am. Having this script could help my livelihood quite a bit. I really appreciate it. None of the Photoshop aces at adobe.com had this idea…