Photoshop: CS6 Scripting Bug, unable to use app.makeContactSheet();

  • 1
  • Problem
  • Updated 6 years ago
  • (Edited)
O.S Windows 7
I am unable to use app.makeContactSheet(); as when called it only brings up Contact Sheet II script.
If Contact Sheet II is renamed app.makeContactSheet(); still errors with "Missing JavaScript"
Test code....
 

createContactSheet(Folder("~").openDlg("*.*",true));

function createContactSheet(selectedFiles) {
var cSheetOpts = new ContactSheetOptions;
cSheetOpts.acrossFirst = true;
cSheetOpts.bestFit = false;
cSheetOpts.caption = true;
cSheetOpts.flatten = true;
cSheetOpts.resolution = 300;
cSheetOpts.rowCount = 2;
cSheetOpts.columnCount = 3;
cSheetOpts.font = GalleryFontType.HELVETICA;
cSheetOpts.fontSize = 12;
cSheetOpts.height = 2400/(cSheetOpts.resolution/72);
cSheetOpts.width = 3000/(cSheetOpts.resolution/72);
cSheetOpts.useAutoSpacing = true;
cSheetOpts.vertical = 8; // 0..1000
cSheetOpts.horizontal = 8; // 0..1000
cSheetOpts.mode = NewDocumentMode.RGB;
app.makeContactSheet(selectedFiles,cSheetOpts);
};

Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes

Posted 6 years ago

  • 1
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
Problem solved!.
The problem was xbytors contactsheetII.jsx that is supplied with Photoshop CS6.
I have removed this and then put the ContactSheet.8LI from CS5 also copied the Layouts folder to CS6.
Now I have a perfect working Picture Package and a perfect working ContactSheetII (Old type) and the biggest plus is that my script now works.