Skip to main content
Known Participant
August 28, 2007
Question

Step through folder heirarchy to make all thumbnails

  • August 28, 2007
  • 1 reply
  • 401 views
New to Bridge but not [Apple]scripting. I see Bridge CS3 has almost no Applescript commands but all Javascript.
My question is: Is it possible to tell Bridge to step through a big folder heirarchy and create thumbnails for all images?
Any quick examples or reference appreciated.
This topic has been closed for replies.

1 reply

dfranzen_camera_raw
Adobe Employee
Adobe Employee
August 28, 2007
You can use two approaches -- you can use the ExtendScript Folder and File classes or the Bridge API's Thumbnail class.

Download the Bridge SDK from www.adobe.com/devnet/bridge

You'll find API documentation for the Folder and File objects in the JavaScript tools guild and of the Thumnail object in the Bridge CS3 JavaScript Reference (both in the SDK's docs folder).

Please not that if you iterate over the files in a folder using the Thumbail object be sure to use this approach:

var parent = new Thumbnail( new Folder("~/SomeImages") );
var children = parent.children;

for( var c = 0; c < children.length; ++c )
{
//etc...
}

And not...

for( var c = 0; c < parent.children.length; ++c )
{
// etc..
}

The latter approach will be very slow and unreliable--each access to the Thumbnail.children property returns a new array of Thumbnails.

-David Franzen
Adobe Bridge Quality Engineer
Adobe Systems, Inc.