Hopefully your file was done with table and cell style (why shouldn't anyone work without styes?), correct the styles.
Is there a way to find automatically the tables with registration color and change them with 100% k?
It can be scripted. If you are using OSX this Applescript should work:
tell application "Adobe InDesign CC 2014"
set k to item 1 of (every swatch of active document whose name is "Black")
set r to item 1 of (every swatch of active document whose name is "Registration")
set c to every cell of every table of every text frame of active document
repeat with x in c
if the top edge stroke color of x is r then
set top edge stroke color of x to k
if the right edge stroke color of x is r then
set right edge stroke color of x to k
if the bottom edge stroke color of x is r then
set bottom edge stroke color of x to k
if the left edge stroke color of x is r then
set left edge stroke color of x to k
@Oscar – first I would do a visual preflight with Separation Preview and the total amount of colors set to 400%.
That will give you an individual view on all elements with 400% amount of color or more. Might be sufficient to identify all elements filled and stroked in registration color. Here an example of a table where parts of the cell strokes are formatted with Registration Color:
Then I would run a script like the one from Rob (AppleScript for Mac OSX version of InDesign) on the document.
First I would test with one single table copied to a new document.
If that will work fine, I'd use it on a duplicate of your original one.
And then I would do a visual test with Separation Preview again.
@Rob – Also we could hope, that there are no nested tables (tables inside tables, tables in anchored text frames or grouped text frames*, tables in footnotes). To get tables in anchored text frames, or tables in grouped text frames, simply address all tables in all stories of the document.
Tables in footnotes would be a different case. Also tables nested in table cells.
Here is an ExtendScript version of your AppleScript one a little bit extended.
It will run on all tables of all stories of the active document.
One can undo the whole action with one single Undo command.
What is not covered are the possibility of different gap colors for the strokes.
Also see possible problems with the stroke order defined in the table. See below.
What can go wrong with that script or doing recoloring of the cell's strokes in the UI?
Order of strokes in adjacent cells could be different from order of cells visited by the script.
There is a table property for this:
There are four possible values for strokeOrder:
I will not go into detail here ;-)
This post is long enough.
Thanks to all.
@SRiegel - Yes I can find all the instances in this ant in other ways but I would like to avoid changing them manually.
@Willi Adelberger - in my office, we all work with styles but this file I received from other company and unfortunately the file contain many many defects.
@rob day – I have Mac os X yosemite and indesign cs6. Your script unfortunately gives me a error line 1
@Laubender - Your script is excellent. In a moment changes evry registration color in K.
Thank you very much
@Oscar – ok, my script is working with your document.
Please check the visible results in context with other stroke colors adjacent to the now black ones.
See my warning on the property of strokeOrder of the table itself.
@Oscar – can you specify the exact error message you will get with Rob's script?
Maybe addressing the application with "Adobe InDesign CC 2014" is not specific enough, since we have three versions of InDesign CC 2014 out?
Or should the name be: "Adobe InDesign CC 2014.app" when addressing InDesign by AppleScript on Mac OSX 10.10 (Yosemite) ?
Or the whole path to the app is needed?
About error code:
I think the reason you are getting an error with my AppleScript is, it needs to be compiled in Apple's Script Editor (not ExtendScript) and saved with a .scpt extention. Script Editor is normally found in Applications>Utilities
Tanks a lot rob day