Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Convert RGB to CMYK Remove unused

Return to Member Forum

  • Author
    Posts
    • #1221958
      Paul White
      Member

      Hi peeps,

      It’s been a long while since I have had to post on here. After numerous indesign updates I have lost my most used scripts.

      1. I had one that converted all RGB colours to CMYK and remove any unused colour swatches? I can’t seem to find this any where, broken links etc and would it still work in Indesign 2020?
      2. I had a script that converted all pages from spreads to single pages, but keeping it with a left and right page. This was used for printers who needed individual pages with full bleed areas?

      Thanks for any replies.

    • #14323324
      Masood Ahmad
      Participant

      Hi Paul.

      Try this:


      #target indesign
      app.menuActions.item("$ID/Add All Unnamed Colors").invoke();
      var myIndesignDoc = app.activeDocument;
      var myUnusedSwatches = myIndesignDoc.unusedSwatches;
      for (var s = myUnusedSwatches.length-1; s >= 0; s--) {
      var mySwatch = myIndesignDoc.unusedSwatches[s];
      var name = mySwatch.name;
      if (name != ""){
      mySwatch.remove();
      }
      }
      app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK, model:ColorModel.PROCESS};

      I call this script: “Swatches_Add-UnNamed_Delete-Unused_Convert-2-CMYK-Process.jsx”

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads