Skip to main content
SiberianSiren5
Known Participant
January 19, 2024
Question

Script for alphabetizing InDesign Print Presets

  • January 19, 2024
  • 3 replies
  • 854 views

Does anyone still have that script that alphabetized print presets in InDesign? It is so useful and wasn't saved during the last update.

This topic has been closed for replies.

3 replies

Mike Witherell
Community Expert
Community Expert
January 25, 2024

This specific script worked for me on Windows 11 latest and was installed under Users and in a Scripts Panel subfolder named "Version 4.0 Scripts"

//SortPrinterPresets.jsx
//An InDesign JavaScript
//by Dave Saunders
/*  
@@@BUILDINFO@@@ "SortPrinterPresets.jsx" 2.0.0 19 November 2006
*/
//Sorts the printer presets in alphabetical order, leaving the Defaults at top.
//
//For more on InDesign/InCopy scripting see the documentation included in the Scripting SDK 
//available at http://www.adobe.com/devnet/indesign/sdk.html
//or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
//
//DESCRIPTION: Sort Printer Presets

myPresets = app.printerPresets;

myNames = myPresets.everyItem().name;

myNames.shift(); // lose [Default]

myNames.sort(lc); // sort remaining names

for (j = 0; myNames.length > j; j++) {

  myPresets.item(myNames[j]).duplicate();

}

for (j = myNames.length; j > 0; j--) {

  myPresets[1].remove();

}

for (j = 0; myNames.length > j; j++) {

  myPresets[j+1].name = myNames[j];

}

function lc(a,b){

  a = a.toLowerCase();

  b = b.toLowerCase();

  if (a > b) { return 1 }

  if (b > a) { return -1 }

  return 0

}
Mike Witherell
SiberianSiren5
Known Participant
January 29, 2024

Still does not work for me. Oh well, I have given up and have been recreating all my presets. Should be something simple that Adobe would automatically have built into their programs.

Robert at ID-Tasker
Legend
January 20, 2024
SiberianSiren5
Known Participant
January 20, 2024

I Googled like crazy, but never found it. I tried this one, but it hasn't worked even though I closed and reopened InDesign. I'll have to try restarting my compuetr to see if it works.

 

Mike Witherell
Community Expert
Community Expert
January 20, 2024

I'm glad you found it!

It works.

But you must put it in a subfolder named "Version 4.0 Scripts"

Mike Witherell
Mike Witherell
Community Expert
Community Expert
January 19, 2024
SiberianSiren5
Known Participant
January 19, 2024

Thanks, but CTRL/ALT/Shift only organizes them for that moment, not permanently I could save each one and then reload them one by one, but that is tedious because I have quite a few. I used to have a script that you add to one of the InDesign folders, but I have lost it. 😞