1K Messages
•
17.1K Points
Wed, Jan 16, 2019 3:21 PM
1
Bridge: Contextual "Batch" command
I run Batch operations from Bridge to Photoshop all day long. Photoshop installs scripts which create the Tools->Photoshop submenu but its much easier to right-click a selection in the Bridge browser window than to keep diving into the submenu.
If you add this little script to Bridge, it creates a contextual menu item and calls the same routine as the Tools->Photoshop->Batch menu command, to send a group of files to Photoshop.
Save as a ".jsx" file from a text editor, select Preferences->Startup Scripts in bridge and click the Reveal button. Drag the .jsx file into that folder and relaunch Bridge.
-----------------------------
#target bridge
if(BridgeTalk.appName == 'bridge'){
var openCommand = new MenuElement('command', 'Batch...', 'after Thumbnail/Open', this.menuID);
}
openCommand.function(){
openBatch();
}
function openBatch(){
try{
if(app.document.selections.length > 0){
photoshop.batchFromBridge();
}
else{
alert('No files chosen.');
}
return;
}
catch(e){
}
}
-----------------------------
If you add this little script to Bridge, it creates a contextual menu item and calls the same routine as the Tools->Photoshop->Batch menu command, to send a group of files to Photoshop.
Save as a ".jsx" file from a text editor, select Preferences->Startup Scripts in bridge and click the Reveal button. Drag the .jsx file into that folder and relaunch Bridge.
-----------------------------
#target bridge
if(BridgeTalk.appName == 'bridge'){
var openCommand = new MenuElement('command', 'Batch...', 'after Thumbnail/Open', this.menuID);
}
openCommand.function(){
openBatch();
}
function openBatch(){
try{
if(app.document.selections.length > 0){
photoshop.batchFromBridge();
}
else{
alert('No files chosen.');
}
return;
}
catch(e){
}
}
-----------------------------
Ideas
•
Updated
2 years ago
11
1
1
Helpful Widget
How can we improve?
Tags
No tags available
Responses
paul_riggott
361 Messages
•
6.9K Points
2 years ago
#target bridge
if( BridgeTalk.appName == "bridge" ) {
var menu = MenuElement.find ("contextTools");
if (menu == null) var newMenu = MenuElement.create( "menu", "Photoshop", "at the end of Thumbnail", "contextTools" );
var IProc = new MenuElement("command","Image Processor...", "at the end of contextTools","ImageProc");
var ThumbBatch = new MenuElement("command","Batch...", "at the end of contextTools","BatchProc");
var stackFromBridge = new MenuElement("command","Load files into Photoshop layers", "at the end of contextTools","StacktoLayers");
var PhotoMerg = new MenuElement("command","Photomerge...", "at the end of contextTools","PhotoMerg");
var mergeToHDR = new MenuElement("command","Merge to HDR Pro.", "at the end of contextTools","MergHDR");
var contactSheet = new MenuElement("command","Contact Sheet II...", "at the end of contextTools","Contactsheet");
var lensCorrect = new MenuElement("command","Lens Correction...", "at the end of contextTools","lensCorrection");
var picturePack = new MenuElement("command","Picture Package...", "at the end of contextTools","picPackage");
var place = new MenuElement("command","Place in Photoshop...", "at the end of contextTools","picPlace");
var print = new MenuElement("command","Print...", "at the end of contextTools","picPrint");
}
IProc.photoshop.imageprocessorFromBridge;
ThumbBatch.photoshop.batchFromBridge;
stackFromBridge.photoshop.loadFilesIntoStackFromBridge;
PhotoMerg.photoshop.photomergeFromBridge;
mergeToHDR.photoshop.mergeToHDRFromBridge;
contactSheet.photoshop.contactSheetFromBridge;
lensCorrect.photoshop.lensCorrectFromBridge;
picturePack.photoshop.picturePackageFromBridge;
place.function(){
photoshop.place(app.document.selections[0].spec);
};
print.function(){
//photoshop.jsx needs amendment from document.print(); to document.printOneCopy(); for CS6
photoshop.print(app.document.selections[0].spec);
}
1
0