Skip to main content
Known Participant
February 25, 2009
Question

Remove Unused Colors?

  • February 25, 2009
  • 2 replies
  • 507 views
When "Remove Unused Colors" is run from the Swatches panel, it performs the deletion in a fraction of a second, however when written into a script it seems to take in some cases minutes to complete.

Is this a symptom of how the script interacts with the app, therefore making it impossible to solve? or is there a way to efficiently write it to improve performance?

Thanks
This topic has been closed for replies.

2 replies

Known Participant
February 25, 2009
It's about 1000 lines give or take and covers an entire workflow, so I won't post it, but I'll explain more in detail.

The user will choose a template to create based on a number of selection criteria spanning several dialogs, one of which includes color. If the user chooses the "problem" selections, the colors from a pre-prepared indd document are loaded, which contains the entire Pantone Solid Coated library. This loads ok and the removal of these colors aren't so bad. It's when the user needs the metallics library in conjunction with solid coated that causes the problem. When deleting the unused after both libraries are in the document, there is a significant increase in run-time. Running the command from within indesign cs3 however takes less than a second.

The perfect scenario would be to find the proper color in the proper library and simply just load that color when chosen, but I don't know if it is even possible. If it is, I have no clue how to do it.

Seth
Peter Kahrel
Community Expert
Community Expert
February 25, 2009
What does your script look like?

Peter