forked from Paul-Riggott/PS-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bridge context menu Items.jsx
35 lines (31 loc) · 2.12 KB
/
Bridge context menu Items.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//C:\Program Files (x86)\Common Files\Adobe\Startup Scripts CS6\Adobe Photoshop\photoshop.jsx
#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.onSelect =photoshop.imageprocessorFromBridge;
ThumbBatch.onSelect = photoshop.batchFromBridge;
stackFromBridge.onSelect = photoshop.loadFilesIntoStackFromBridge;
PhotoMerg.onSelect = photoshop.photomergeFromBridge;
mergeToHDR.onSelect = photoshop.mergeToHDRFromBridge;
contactSheet.onSelect = photoshop.contactSheetFromBridge;
lensCorrect.onSelect = photoshop.lensCorrectFromBridge;
picturePack.onSelect = photoshop.picturePackageFromBridge;
place.onSelect = function(){
photoshop.place(app.document.selections[0].spec);
};
print.onSelect = function(){
//photoshop.jsx needs amendment from document.print(); to document.printOneCopy(); for CS6
photoshop.print(app.document.selections[0].spec);
};
};