Skip to main content
Participant
May 16, 2007
Question

Script to automatically make a stack with a RAW+jpg pair of images

  • May 16, 2007
  • 15 replies
  • 3000 views
While on my last trip, I accidently setup my camera to take Raw + small jpg. No big deal, that isn't too much memory, so I didn't really worry about it. When I got home, the jpg files were copied to my hard drive along with the raw files. So, I went to delete the jpgs and I realized something. Bridge runs very fast when it's drawing thumbnails and previews of small jpg images. I got to thinking. Wouldn't it be cool to make a script that would take your raw+jpg from the camera and convert each pair into a stack with the jpg on top. This would enable bridge to run much more quickly since it wouldn't need to render all those raw image thumbs and previews.

Hmmm....now where to start....I looked around at the scripting language for photoshop. since I have written a little bit of javascript, I thought I would start there, but I can't find where the stack property is kept in metadata or the DOM.

Any ideas of where I might turn from here?
This topic has been closed for replies.

15 replies

Participating Frequently
August 28, 2008
Try it :)

app.document.select(app.document.thumbnail.children[0])
app.document.select(app.document.thumbnail.children[1])
app.document.chooseMenuItem('submenu/Stack')
app.document.chooseMenuItem('StackGroup')

http://niemannross.com/developer/wiki/index.php?title=MenuElementObject#Submenu_and_Command_Identifiers - MenuID
Participant
April 14, 2008
I have a script that put all the jpg in a jpg folder and all the raw in a raw folder inside the pics foler itself , I use it with nef pics (nikon) but you just have to change it to the good extension :

property _subfolder_nef : "NEF"
property _subfolder_jpg : "JPG"

tell application "Finder"
set _slidefolder to choose folder

set NEFfolder to make new folder at _slidefolder with properties {name:_subfolder_nef}
set JPGfolder to make new folder at _slidefolder with properties {name:_subfolder_jpg}
move (get files of _slidefolder whose name extension is "nef") to NEFfolder
move (get files of _slidefolder whose name extension is "jpg") to JPGfolder
end tell

Hope this will help...
Participant
January 13, 2008
Anyone has a good tip on doing this in PSE6 ?
I found it pretty difficult to grasp the idea that there was no business logic in PSE Organizer to do this...
Participant
September 22, 2007
David,
This is a feature that I have tried very hard (unsuccessfully) to produce using scripting and other tricks in Bridge for quite some time. I almost always work with a JPG/RAW pair, and the ability to label them together, and to view the JPG as a representation of the pair is of paramount importance to me. I have been using Photo Mechanic for several years, solely because of this capability, and will not make the transition to Bridge until I can do this. A lot of my colleagues also work the same way, and while they moan about Photo Mechanic's quirks, they will not go to Bridge simply because it does not provide this simple but very necessary functionality. Is there any chance we will see it in CS4, or (even better) an update to Bridge CS3?
David Peart
Earthlight Photography
www.earthlightphotos.com
dfranzen_camera_raw
Adobe Employee
Adobe Employee
May 16, 2007
Marc,

Yes, that sounds like a cool script, but unfortunately the stack function is not exposed to scripting by the DOM. Thanks for letting us know that you would find this useful.

For now, how about using the Filter pane to show only JPEG files in the content pane?

Also, you can try using Quick Thumbnails preference to make thumbnails for your RAW files. If your camera embeds a small thumbnail in the RAW files, Bridge may be able to extract and display it faster than it can generate a Thumbnail from scratch.

Thanks for your feedback,
David Franzen
Adobe Bridge Quality Engineer