What are "blocks"? (Individual Paths? Text objects? Groups?)
Is the 70% black defined as a Global color?
Also do you need to preserve the tint when changing to the pms color?
I would think this has to be a script.
Thanks for the help here.
For reference they are rectangles of 70% black at the top and bottom of a page and no I don't need to keep the tint just a solid Pantone.
It's not a global colour in the swatch palette, does it need to be? It'll be time consuming going through all the files doing this.
As I edited my last post I think this has to be a script. The way this might work if it is not a global color is with the recolor art but that dialog does not seem to be workable with an action? Which maybe a bug.
If it is not global you would have to select one of the objects then select the select>same>fill color then select a color book swatch library and then select the pms color then of course enter the pms color you want.
For this to work with an action it would really be something but a script could call the right functions into play.
Thanks Wade, I'll look into that.
You really have experiment with scripts don't you. One command out of place and you can be there for a while.
I think this can be done with an action. First you need to create a document with two objects, one with the 70% black color and one with the Pantone color you want. Each must also have a note assigned to it, which allows you to select the objects as part of the action. This is done with the Attributes panel. The two objects must be copied to the clipboard before the action is run.
The action sequence will go as follows:
Paste, Deselect all, Select the 70% black object (the command is in the Action panel menu), Select Same color (using Insert Menu item... from the same menu), assign Pantone color (which will be automatically added from the pasted object), then select and delete each oof the pasted objects, again using the same Select Object command.
It should work as long as the objects are on the clipboard.
Good luck. This is a rather rushed description. Refer to the Help documentation for questions.
I do not know how you batch this and if a script is still not a better
way to go.
As for problems with structuring you script there is if you notice an
Illustrator Scripting Forum, one thing you should do is to look there
first and you might even get lucky with a script that exists
or can be modified to your specific needs.
Worth a try.
Just curious: for what reason would this not work in a batch?
Also, I would agree that a script might be "better," but I thought an action would be easier, especially to someone unfamiliar with scripting.
My book on Illustrator scripting by Ethan Wilde specifically suggest using an action first if it will work, before going on to a more difficult scripting solution.
Perhaps i am wrong my thought was that since it is not global and
there are more than one object that this might not actually work.
But of course there would be no harm trying it and I might be wrong.