0 Replies Latest reply on Dec 10, 2008 10:49 AM by Kevin Parrott

    [AS]  get a list of the used swatch colours in a document

    Kevin Parrott Level 2
      Hi

      I am trying to find out how to get a list of the used swatch colours in a document, not including, "None", "Registration", "Paper", and "Black" (black only if it is not used, if used then add to used list).

      I have been doing the below which gives me a 50% result, but was wondering if their
      was a more efficient/better way of doing what I seek?

      -------------
      tell application "Adobe InDesign CS3"
      activate
      delete unused swatches of document 1
      get name of swatches of document 1
      end tell
      --------------

      Adobe InDesign CS3

      cheers
      Budgie