Spot color used in indesign document

Hi all,
How to find spot color used (text, frame and any othe item) in Indesign document.
Please help me to write javascript code.
thanks,
mon

'unusedSwatches' -- sure. Removing these will leave just the used ones (something like that was asked a while ago). But it seems the OP wants to know where the remaining ones are in use.
Graphic objects can be tested per Loic's script, but each and every single table cell fill and stroke needs to be checked, and for text I can't think of anything else than explicitly searching for fill & stroke.
The OP needs to 'find' spot color usages, which is rather unclear in the context of a script. Find it -- and then what? Report? Highlight/select? (Which doesn't work when more than a single occurence is found.) Change to another color?

Similar Messages

  • Can InDesign tell me the percentage of color used on a document?

    I have a client on a fixed budget who wants a booklet with some pages in color. I use a printer who charges fluctuate based on the amount of color coverage. Can Adobe InDesign tell me the percentage of color used on a document?

    I'm used to seeing digital printers charge based on color vs. black per page, but never by coverage, but then you used to be able to buy software instead of renting it, so times change.
    It's pretty common for files with Black ink only to really have some color on them -- printers marks, for example, or they go through a profile conversion and print as rich black.

  • How to find out that an art item has spot color using script?

    Hi all,
    I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.
    Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?
    Thanx in advance...

    Thanx for the reply carlos....
    But I am not able to use "icolor.typename". There is nothing like "typename" showing in the properties.
    I am using it like this:
    var app:com.adobe.illustrator.Application = Illustrator.app;
                                            var pathArt:PathItem;
                                            var allPaths:PathItems           = doc.pathItems;
                                            if ( app.documents.length > 0 && doc.pathItems.length > 0)
                                                           var colorValue:com.adobe.illustrator.Color;
                                                           //Fill color to the selected object.
                                                           for (var i:int = 0; i < doc.pathItems.length ; ++i)
                                                                          pathArt = allPaths.index(i);
                                                                          if(pathArt.selected)
                                                                                         colorValue = pathArt.fillColor;
                                                                                         trace(colorValue.typename);              //But colorValue doesn't show any property like "typename".
    Do am i missing some thing?
    Thanks...

  • List of Fonts/Colors used in illustrator document

    Hi guys,
    Is it possible to get the list of all the fonts and colors used in the active illustrator document (.ai file) ?
    if yes then how?
    thanx in advance...

    I thought about AdjustObjectAIColors, and its a good way to get a bunch of them but I'm not 100% sure if it covers all colours or just those found in paths. If not, this would exclude colours on effects & overlays for symbols, found in kPluginArt (though there is a similar function for plugin art specifically) and I imagine text. Probably a few other types if we look hard enough. Granted, paths are probably 90% of colours :-) I also wondered (sinc I haven't tried it before) how comprehensive that method is -- does it hit all the colours in various effects & styles layered on path? Or does it just hit the standard stroke & fill? I assume not, but I don't know.

  • Hey guys, I am new to javascript and I am trying to figure out how to add two spot colors to the active document. I am trying to get it to detect weather or not the spot colors are already in the document, and if they are not, it will proceed to create th

    Here's what I have so far.
    var docRef = app.activeDocument;
    if (docRef.swatches.getByName ("CutContour") === 'undefined') {
    var spotNameCC = "CutContour";               
    var cmykColor = new CMYKColor();
    cmykColor.cyan = 0;
    cmykColor.magenta = 100;
    cmykColor.yellow = 0;
    cmykColor.black = 0;
    // Create Spot
    var spot = docRef.spots.add();
    spot.color = cmykColor;
    spot.colorType = ColorModel.SPOT;
    spot.name = spotNameCC;
    //var spotNameW = "WEED (r)";
    // Create CMYKColor
    /*var cmykColor2 = new CMYKColor();
    cmykColor2.cyan = 50;
    cmykColor2.magenta = 0;
    cmykColor2.yellow = 50;
    cmykColor2.black = 0;
    // Create Spot
    var spot2 = docRef.spots.add();
    spot2.color = cmykColor2;
    spot2.colorType = ColorModel.SPOT;
    spot2.name = spotNameW;
    Let me know what I did wrong lol I know it has to do with the detecting part. Also, if anyone knows any good websites to learn javascript I would be very thankful. I am not sure what a lot of the syntax means. Thanks!!

    Never mind I figured it out. Someone posted a similar question a few months ago on here, damn this forum is awesome wish I had known about it sooner. Sorry if I wasted anyone's time.

  • Color correction for indesign document?

    Hi,
    I've made a photo book in indesign but when test printed the yellows are coming out green.
    The problem is consistent throughout.
    Is there any way to correct the colour of the entire document?
    I have no control over the printer or colour profile used as these are specified by the printing company (Blurb).
    My current solution is to recalibrate my monitor and re-colour each picture individually in photoshop, however this strikes me as a laborious solution to a very common problem.
    Perhaps my google-fu is weak but in searching for a solution all I find is page after page of people saying how to set up the colour profiles corectly. I know how to set up colour profiles but on this occasion managed to make a mess of it, as have several million other people judging by the number of pages google can find on the subject.
    If I had a set of CMYK sliders I could fix the problem in seconds, so the idea of messing with my computer's settings then individually correcting over 100 images seems absolutely insane, yet this is what the wisdom of the internet keeps telling me to do. Surely there's a better way?
    If there's nothing in indesign for correcting print colour, can the document be exported and coloured elsewhere?
    Thanks in advance for anyone's thoughts on this,
    Ally@Tartan Pixie

    Hi,
    Yes I am using the Blurb profile etc. The problem is that I made a balls up of calibrating my monitor - 100% my fault.
    What I am trying to find out is whether there's a quicker way of rectifying the mistake than re-calibrating the monitor and then re-colouring each picture indivdually in photoshop?
    Is it possible to export the document from indesign, then re-colour the document as a whole and save it in the pdf version 1.3 required by Blurb? If so what software would I use for this?
    For reference, I am using indesign CS6 and photoshop elements 9. This is just a stop gap until my new computer arrives and I can use everything from creative cloud and acrobat pro. I point this out because there may be a solution using the full fat photoshop to colour a pdf that's been exported from indesign, but I'm unable to experiment at this time.
    Cheers,
    Ally@TartanPixie

  • Finding spot color and process color

    Dear all,
    I used the following code to find the spot color used in the document.
    var length=app.activeDocument.spots.length;
    for(i=0;i<length;i++){
    alert(app.activeDocument.spots[i].color);
    It is showing CMYK Color as the output.
    Can anyone tell me wheather it is a correct output.I want to identify all the spot color in the current active document.
    Also please help me finding out the Process color used in the document.What is the diffence between these two ?
    Regards,
    Sanat

    Sanat,
    Even if a color is Spot, it still has to have CMYK or RGB values (depending on the color mode of the document) to tell Illustrator what color to display it as.
    Beyond that, though, you're going to run into another problem anyway: Any Swatch that is defined as Global is going to be counted as a Spot Color. (I've been complaining about this for years.)
    For example:
    var docRef=app.activeDocument;
    var count=docRef.spots.length;
    alert(count);
    for(i=0;i<count;i++){
    alert(docRef.spots[i].name);
    Run that in a CMYK document in which you have removed all unused palette items. You'll find that it returns [Registration] as a spot color, just because it's set to Global. Now doubleClick the Black Swatch. Set it to Global (but not Spot). The sript will tell you there are two Spot colors.
    JET

  • Document Spot color

    Hi All,
    I require a script to find if there is any spot color used in my indesin document.
    Can anyone please provide me the code.
    Regards,
    Chang

    Hi,
    Checking applied color must be scan all objects!! of the document,
    Here is a code, it scans texts and frame objects(Text Frame, Rectangle,,,,)
    but not support table and cell.
    mg
    Thanks
    var doc = app.activeDocument;
    var mySwatch = doc.colors;
    var flag = 0;
    for (var i=0; i < mySwatch.length; i++){
        if (mySwatch[i].model == ColorModel.SPOT){
           flag += 1;
    if ( flag > 1 ){
        check_spot(doc);
    else{
         alert("no spot color");
    function check_spot (doc) {
         // scan text story exclude table and cell
         var flg2 = flg3 = flg4 = flg5 = 0
         var story_obj = doc.stories;
         for (var sti=0, stiL=story_obj.length; sti < stiL ; sti++) {
              var tsr_obj = story_obj[sti].textStyleRanges;
              for (var tsi=0, tsiL=tsr_obj.length; tsi < tsiL ; tsi++) {
                   try{
                        if (tsr_obj[tsi].fillColor.model == ColorModel.SPOT) {
                             flg2 += 1;               
                   }catch(e){$.writeln(e);}
                   try{
                        if (tsr_obj[tsi].strokeColor.model == ColorModel.SPOT) {
                             flg3 += 1;               
                   }catch(e){$.writeln(e);}
         // scan pageitem
         var all_p_item = doc.allPageItems;
         for (var api=0, apiL=all_p_item.length; api < apiL ; api++) {
              try{
                   if (all_p_item[api].fillColor.model == ColorModel.SPOT) {
                        flg4 += 1;
              }catch(e){$.writeln(e);}
              try{
                   if (all_p_item[api].strokeColor.model == ColorModel.SPOT) {
                        flg5 += 1;               
              }catch(e){$.writeln(e);}
         // result message
         if ( flg2 > 0 || flg3 > 0 || flg4 > 0 || flg5 > 0 ) {
              var tx_fill_color   = flg2 > 0 ? "used spotcolor in text fill " + flg2 + "part" : "";
              var tx_stroke_color = flg3 > 0 ? "used spotcolor in text stroke " + flg3 + "part" : "";
              var pi_fill_color   = flg4 > 0 ? "used spotcolor in page item fill " + flg4 + "part" : "";
              var pi_stroke_color = flg5 > 0 ? "used spotcolor in page item stroke " + flg5 + "part" : "";
              var rslt = [tx_fill_color, tx_stroke_color, pi_fill_color, pi_stroke_color].join('\n')
              alert("result\n" + rslt);

  • Dear Spot Color Printing Gods......... Please Help Me!

    Ok so here is my story...
    I have been doing graphic design and 3D work for about 7 years. I have NEVER worked in print before, and no NOTHING of color separation or spot color, etc... I am learning all this right now on the fly for my new job, and its not going well.  I was hired and expected to hit the ground running, even though I made it clear I did not have any screen printing experience. (I was mainly hired to help with web design) I have had some mistakes doing the color separation (not 4 color) and its costing the printer money to see if I did it wrong or not.  The printer has no experience with the software (and only speaks English fairly well), nor does my boss know the software, but they both know how its SUPPOSED to look, and they are getting impatient.. Needless to say, I have to turn to the internet for help, so please be gentle with me not knowing much...
    SO....Im a PC user working on a Mac & Illustrator Cs3(I know Mac fairly well).  I have learned the basics pretty fast for screen printing.  The printer is using spot colors only.  After I get the Illustrator file (yes its vector), I delete all swatches except the "Pantone Solid Coated" colors used in the art - or I have to add them from the Solid Coated color book.  After that, I would separate the colors by 1) Duplicating the image however many times that there are colors. (So a splat of soup has 3 colors, I duplicate it 3 times with register marks)  2) I remove all the color except the one Im trying to show. (Im showing the green peas, so I remove the red and yellow colors from the other objects) 3) then I make what the printer calls the "Flash" (the white undertone that the paint adheres to on the garment)  I make this by taking the art, and reducing the size to 1pt smaller.  Once all the colors are seperated, I make each color 100% black, convert the image to grayscale and THEN Im done.  Problems I have been running into have been registration marks somehow not lining up and some colors do not end up 100% spot tones.. One other wierd thing is when I convert to grayscale on the Mac, the art work retains its color on the screen.  When I tried to do that at home on my PC, the artwork turns gray????
    WHEW!  So what I am asking for is a fast, simple way to color seperate a vector file and then create the flash.  And/or how to create a template that I can reuse, that is ready for me to just drop artwork into for spot color seperation.   I have included an image to show you a project I am working on.  Its an  ice cream spill on a shirt.  I have tried to start a template with reg. marks, and that is what you will see here.  There are 5 colors that I have to specify.  The printer actually told me that I do not need to split up the art work the way I have been, nor do I need to change it to black, and all that I have to do is specify all the colors,(spot colors/100% only) and then the printer does the seperation on the clear film. (it only prints in black)  I was also curious why my PC would change the artwork gray and the Mac does not when converting to grayscale.  I thank you VERY MUCH for even reading this maddness that is my life right now, and hope you can give me some helpful wisdom to assist and lead me on my journey.  The job pays well, and I need the money badly!  Thank you very much for any and all help you can give me!
    ~LiQ

    Some misconceptions evidenced in your post.
    You don't have to use a Pantone library to create spot colors. Pantone is just one brand of spot color definitions and inks intended for offset lithography; not screen printing. You can define any color you want as a Swatch and then specify it as Spot. A Spot color is simply a color that represents an individual ink that will be physically used in the printing process. Therefore, if you want to please your boss:
    1. Get the color chip brochure for the particular brand(s) of screen ink your operation uses.
    2. Open Illustrator. New CMYK document. Delete all the Swatches that can be deleted.
    3. In the Swatches palette, for each color of your screen inks, create a new Swatch. Use the CMYK sliders to make its color match the ink as best you can. Name the swatch according to the name of the actual screen ink (ex: Nazdar_BrilliantBlue). In fact, the ink manufacturer(s) you use may already provide a ready-made Illustrator Swatch Library for their various series of inks. Check their websites to see.
    4. After creating the swatches, save the Library, and/or save the file as a tempate file. Now you'll always have your Spot colors available for new projects.
    Now just draw your design and apply the spot colors to the paths as fills and/or strokes. When you print the file as separations, you'll get a separate print for each spot color used. One of the simplest ways to "proof" (test) this is to "print" as separations to the Adobe PDF virtual printer. That will result in a PDF file that has one grayscale page for each ink in your design. That way, you can check what overprints and what knocks out on screen without wasting time or materials. Once confident everything is right, you can then use the PDF to print the actual film positives.
    One of your swatches should be a spot white for your underprint. ( "Flash" is not actually an ink color. It's a production step in which a dryer semi-dries an imprinted ink before overprinting it with another. You usually flash a white underprint, but you just as often flash any color with significant density that needs to be overprinted with a following color.) Understand, you don't have to make this swatch actually appear white. For example, I often make it a pale magenta just so I can see it on screen when working with it.
    Just because the white underprint is going to be printed underneath the other colors, doesn't mean it has to be layered under your other colors in your Illustrator document. Remember, each ink is going to be printed to its own plate anyway. So it's simpler to just put your white underprint objects on a Layer above the rest of the artwork, and set it to overprint, so that it doesn't knock out the rest of the artwork on layers below it in the stacking order.
    Assuming the white underprint has to underprint all the other colors, creating the white underprint should be the near-last step. It's simply a matter of duplicating the colored artwork objects, moving them to the Underprint layer, filling/stroking them with the spot white color and (for efficiency) merging them into as few paths as possible. The Merge or Union Pathfinder commands are typically used for that.
    JET

  • Map Spot Color to Another Spot Color in Acrobat 9?

    In Acrobat 8 I could easily map one spot color to a different spot color using the "Convert Colors" action drop down menu.  With a few clicks, all page items that were colored with Spot 1 could be converted to Spot 2 using this process.  I use it all the time on an hourly basis to create the press sheet layouts for our PDF workflow.
    However, in Acrobat 9 the "Convert Colors" does not give me the "Map to ......" option any longer.
    Simply going to the Ink Manager to make an alias does not change the colors of the elements either.  I have noticed that if I first go to "Convert Colors" and then click "Ink Manager" and then alias the spot x to spot y, it will correctly change those items.  But this is requires a lot more effort and keystrokes to do something that was very simple and easy in Acrobat 8.  [By the way, if I went to Ink Manager directly (not through "Convert Colors") it would NOT change colors.]
    I know that I could do this in Pitstop but that would take more keystrokes and the way I do it in Acrobat 8 is much quicker and more efficient.
    Am I missing something with Acrobat 9?  Can someone tell me how to achieve this in an easier way using Acrobat 9?   How about in Acrobat 10 - is it any easier?
    Thanks for your advice.
    Glenn

    tell application "Adobe Illustrator"
              tell current document
                        set theList to every path item
                        set sw to every swatch
                        repeat with i from 1 to count of sw
                                  set swname to name of item i of sw
                                  if swname = "Dark Green" then
                                            set swco to color of item i of sw
                                            repeat with k from (count of theList) to 1 by -1
                                                      set co to fill color of item k of theList
                                                      if swco = co then
                                                                set fill color of item k of theList to {cyan:0.0, magenta:100.0, yellow:0.0, black:0.0}
                                                      end if
                                            end repeat
                                  end if
                        end repeat
              end tell
    end tell

  • Changeing Spot Colors to cmyk

    I am trying to edit an Indesign cs5 file a customer provided. However some how he used 25 spot colors when making this file. Thats even though he only really has three colors used in the design. So I am attempting to match some of his colors in order to make edits and i need to know how to convert them to cmyk. Also I would like to know how to elemenate all of his unused spot colors so that I can use the over print preview. As it stands I get an error saying there are too many spot colors used to create an over print preview. Before any one recomends that I have the customer recreate it, this customer is old and is convinced he has done everything correctly and refuses to make any changes. In his words " I've been doing this for twenty years and I know what I am doing."

    As to the unused swatches use the following
    followed by the trash can at the bottom of the Swatches panel.

  • Mixing Spot Colors & Spot and CMYK

    My recent project required the use of two spot colors, one resting on top of the other one. But, when the project went to press, the top spot color - used on a font, looked horrible against the spot color - used for the background color. Not at all like the file. I would guess that these two colors mixed and created a different effect than intended. How can I prevent this in the future? How do I set up my InDesign files with this in mind?
    Also, the same situation as above, but mixing spot colors and CYMK (one on top of the other). Suggestions, ideas, do's and don't? How do I set up my file correctly?
    Finally, how do I mix 2 spot colors to create a 3rd spot color in InDesign? Is this possible?

    It sounds as though you had unwanted overprinting of spot colors. And if you previewed the file with Overprint Preview, you could have seen this undesired effect. Did you see a contract proof of project before going to press? If so, did the proof have the same undesired result?
    As for mixing 2 inks... you can do this, but you really are not creating a 3rd spot color. With 2 spot inks already created in the swatch panel, select New Mixed Ink Swatch from the flyout. Here you can select any inks and the percentage mix to create many variations.
    --Looks like Robert and Ozzwoman beat me to it--

  • Spot colors not being saved.

    In CS6 I have been having random situations where the spot color channels are not saved when saving a .psd, regardless of the settings in the save dialog box. Any idea of why this might be happening? I've even had the program dump the spot colors from a multichannel document today while trying to find a workaround. I considered converting the spot colors to alpha channels as well, but there doesn't seem to be an obvious way to do that. Odd, as alpha to spot color conversion is just a radio button away. Any help would be appreciated, thanks!

    This is on an Intel I Mac running Maverics 10.91 (lots of problems with that).
    These are RGD documents at 8 bits per channel. The layers have always been merged at this point.
    The spot colors involved are mostly book colors (Pantone Solid coated), though the program drops custom spot colors (u-white in the screen shot) as well on the occasions when it happens. This began occuring with CS6. I have noted in the forums that the book definitions may have changed, I am revising my actions to move to the current book definitions, though why this would affect a user defined spot color is unclear.In the cases where this occurs, only the "Art Mask" channel would be saved (it's an alpha).

  • Colors used in the publication

    How to determine which colors are used in the publication?
    We must get - cyan, magenta, pantone 100 C.

    Hello,
    I did, a few months ago a plugin to find the colors used in a document called JLG.Colors.
    It can be found at http://jlg.outils.pagesperso-orange.fr/Pages/ManuelTelechargerCS5US.html
    This module is for CS5 Mac.
    JLG.

  • Get Postscript Name of used Fonts in Document

    Hi,
        I need to get postscript font name of fonts used in InDesign Document.  Document Contains both text font and graphic fonts. When I am using the below code its returning text fonts used in document with "MT-Extra" font but "MT-Extra" font is showing as graphic. This line of code is returning text font with "MT-Extra" alone but other graphic fonts are missing. 
    alert("Fonts Used in Doc \n" + app.activeDocument.fonts.everyItem().postscriptName)
    How can I get all fonts (both text and graphic fonts) name using scripting.  Can anyone help me.
    Thanks in advance,
    Sudha K

    Hi,
       If i use this code alert("Fonts Used in Doc \n" + app.activeDocument.fonts.everyItem().postscriptName) its not returning all graphics fonts.
       Also, list of result fonts name is getting differ by using the below codes don't know why.
    alert(getFonts());
    Method 1:
    alert("Fonts Used in Doc \n" + app.activeDocument.fonts.everyItem().postscriptName)
    Method 2 :
    function getFonts()
        var usedFonts = [];
        var usedFontsStr = "";   
        var docFonts = app.activeDocument.fonts;
        for(var i = 0; i < docFonts.length; i++)
            var psFontName = docFonts[i].postscriptName;
            usedFontsStr = "#" + usedFonts.join("#")  + "#";
            if(usedFontsStr.match("#"+ psFontName+"#") == null)
                usedFonts.push(psFontName);usedFontsStr = "#" + usedFonts.join("#")  + "#";
        return usedFonts;
    Method 1 would return fonts used in document know then why this variation.
    - Sudha K

Maybe you are looking for