Using script to stacking of RAW + JPEG, but cannot get JPEG as default the stack thumbnail. Help!

I am currently using this script, I found elsewhere on the Adobe forums. However, doing this function only adds everything with raw on top files. I now use a 5 d MKIII and Bridge CS4 may not generate CR2 previews, so I need the JPEG files to see what file is for General editing. How can I get this stack script to set the JPEG images on the top rather than the raw files?

(script posted by Paul Riggot in another forum)

#target bridge

If (BridgeTalk.appName == 'bridge') {}

Automatic stacking is MenuElement.create ("command", "Auto Stack", "at the beginning of the submenu/battery", "zx1");.

}

AutoStack.onSelect = function () {}

stackEm();

}

function stackEm() {}

App.document.sorts = [{name: "name", type: 'string', reverse: false}];

JPGs var = folder (app.document.presentationPath) .getFiles ("*.jpg");

app.document.deselectAll ();

for (a jpg in var) {}

var Name = decodeURI(jpgs[a].name).replace (/ \.) [ ^\.] +$/, '');

var cells = Folder (app.document.presentationPath).getFiles(Name+".*");

If (stacks.length < 2) continue;

(var z in batteries) {app.document.select (new Thumbnail (stacks [z])) ;}}

StackFiles();

app.document.deselectAll ();

}

function StackFiles() {}

app.document.chooseMenuItem('submenu/Stack');

app.document.chooseMenuItem ('StackGroup');

Hopfully, it should work now, I've now changed the sort order for the jpg is the first...

#target bridge
if( BridgeTalk.appName == "bridge" ) {
AutoStack = MenuElement.create("command", "Auto Stack", "at the beginning of submenu/Stack", "zx1");
}
AutoStack.onSelect = function () {
app.document.sorts = [{ name:"name",type:"string", reverse:true}];
var jpgs = Folder(app.document.presentationPath).getFiles ("*.jpg");
app.document.deselectAll();
for(var a in jpgs){
var Name = decodeURI(jpgs[a].name).replace(/\.[^\.]+$/, '');
var stacks = Folder(app.document.presentationPath).getFiles(Name+".*");
if(stacks.length < 2) continue;
for(var z in stacks){ app.document.select(new Thumbnail(stacks[z]));}
app.document.chooseMenuItem('StackGroup');
app.document.deselectAll();
}
app.document.sorts = [{ name:"name",type:"string", reverse:false}];
}

Tags: Bridge

Similar Questions

Maybe you are looking for

  • Do Toshiba support have an email address?

    HelloI want to contact Toshiba for questions on drivers. I can't find their address - anyone know it? Thank youFrank

  • Equiium series A - maintains turns off after 20 minutes

    My laptop turns off after about 20 minutes of use. I checked for dust and clean battery etc. Any other suggestions? It has been suggested that I have to find and fix bugs in C drive but I don't know how - as any help much appreciated.

  • How can I change the words in the spell checker?

    I've saved an incorrect word in my spell checker in Windows Mail and now can't change it. I tried to change my English version, but it seems that all of my custom entires are moving to the new version. Any suggestions would be helpful.Thank you!

  • Loading screen does not change the Image

    I have a problem with the field of gif. What I'm trying to do, is show a progress screen that the problem is its not like an animation. Its as if she makes just the first frame of the gif image. I have load call that changes the image that some real

  • BI Publisher 11.1.1.9.0 in 11.1.1.9.5 patch

    HelloBI Publisher 11.1.1.9.0 on Linux x 86-64 have recently installed (only component BI Publisher has been installed).To apply the latest patches, and it seems that we should install the Patch 22061111 to upgrade to 11.1.1.9.5.It's to install, even