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.