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

Similar Messages

  • 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?

  • Spot and Process colors - Color Mode confusion?

    I have a question about how to choose colors in the New Color Swatch window. I think that I understand the difference between spot and process colors, but the dropdown options confuse me because whether I choose Spot or Process in the Color Type dropdown, the same list of libraries appears in the Color Mode dropdown. How does that work, or why does that happen? Is it a conversion? For example, if I choose Process as the Color Type, but then choose Pantone Solid Coated in the Color Mode, it shows me the colors available, but aren't the Pantone libraries for spot colors? And if I choose Spot as the Color Type, but then pick CMYK in the Color Mode, it gives the CMYK sliders. But shouldn't I be forced to pick from a Pantone library for a spot color? I would appreciate any explanations of this as I want to make sure that I pick the appropriate colors for my printed projects. Thank you!

    You can create a spot color with a custom CMYK mix (and even name it the same as a library color if you want). The utility here is that you can create a custom spot color with a custom process conversion, or use your own own conversion numbers for one of the book colors if you think you have a better mix. I recently had to do a special mix for a Pantone spot conversion to fit a particualr press in order to get a better match to some other materials. That's how we handled it, though I did it by aliasing the pantone swatch to my custom spot and then changing that to process in the ink manager, rather than messing with the library color directly, which meant I could have either the custom or the book values, depending on the settings I chose, if the job went to another press.
    There are, I believe, four sets of process libraries included in ID. The Pantone Process libraries are sets of stepped percentage mixes of the four process inks and have names that start with DS followed by some numbers. I think TrueMatch is a simialr system, though I've never worked with a printer who used it. Pantone Color Bridge and Solid to Process libraries are both process simulations of the Pantone Solid spot libraries. The Color Bridge is newer, and I think is largely replacing the solid to process.
    You  can get printed swatch books for any of the included libraries (spot and process) and you should do so for any library that you are going to use to specify color. Spot colors in particular may not render well on your monitor, and the press operator couldn't care less what you see on your screen. He's going to pull out his swatch book to verify that the color he puts on the page is the same as you specified.

  • Can I have "All spots to process" checked at all times, even for new spot colors?

    When I check “All spots to process” in the pdf export settings and save my settings the settings remember that I've checked this option. But, if new spot color objects using new spot color swatches are added to the document (or another document) and I go into the pdf export settings the check mark has been changed into a dash (with the actual checkbox highlighted) – signifying that only some of of the spot colors will be changed to process colors during export. I absolutely fail to see how this could possibly be seen as a feature and not a bug … if the user has checked “ALL spots to process” wouldn't the user expect ALL spots to be converted to process colors, rather than just any spot colors that happened to be in the document that happened to be open when the user first checked that checkbox and saved that setting?
    Am I missing something here? What's the point of even having that checkbox as part of your saved export settings if it doesn't include any other spot colors than those used when saving the settings?
    What's the point of having settings if you can't trust them, and still need to manually "override" them every time?
    I see that some users have taken to writing scripts that instead turn all spot colors in the swatch panel to process colors, and while I commend them for creating that workaround, I'm still pissed at Adobe for not getting the function right.
    If this is a feature, who is it for? People who want to add just certain spot colors and turn those into process colors rather than turning all spot colors into process colors are surely better off doing that in the swatches panel, where they're in total control of what's what. And if they don't want to "permanently" change their spot colors to process colors, and prefer to (temporarily) convert them during exporting/printing only, they can do that in the ink manager. But when someone checks convert "All spots to process" couldn't we safely assume they really want ALL spot colors to be converted and not just some of them? I mean, the way that checkbox behaves now, it's like it's a button and not a checkbox. As in: hit the button "All spots to process" to switch all currently viewed spot colors to process colors in the ink manager, OR check the "All spots to process" checkbox to always convert ALL spot colors to process colors during exporting/printing.
    Anyone got any light to shed on this?
    And is there a way to actually get the advertised behavior, because if you have to run a script every time you export/print you might as well just manually select the checkbox every time instead, but either way it's just really unnecessary as far as I'm concerned … Adobe should get the feature right instead.
    If you save a setting and recall it, it shouldn't be possible for that setting to change into something else (in this case changing a checkmark to a dash).
    Clearly CMYK printing is the norm, so for most users it would make a lot of sense to have the "All spots to process" checked most of the time, and then you just go into the swatches panel or the ink manager and set things correctly for those print jobs that really do need spot colors.
    I myself am not one of those who add spot colors to my swatches unless I'm really using them as spot colors, but I often work with magazines and folders featuring adverts made by whoever, and typically there's always at least one advert that features spot colors, and therefore it would be very nice if the "All spots to process" feature actually worked as advertised without any required actions from me.
    We stopped sending ads back to the advertisers for adjustments a long time ago, unless we absolutely had to, because there were so many things wrong with so many ads that it was simply too much work to write back and explain everything to people who most of the time didn't even understand what we were talking about. We found that it was usually a LOT faster and easier to just adapt the ads ourselves, as long as it was something that could be worked out really quickly from within InDesign itself, which pretty much included most typical errors.
    But with this feature I find Adobe is trying to make my job harder rather than easier, and it's pissing me off. Arrrghh… ;-)

    But It's not a preference it's a shortcut
    It's a bad joke, is what it is. ;-)
    So, why in your opinion should it be presented the way it is? I keep saying in it's current functionality it shouldn't be presented the way it is (and that: if it is, it shouldn't work the way it does). If it's not a preference or even a proper checkbox, why present it that way?
    If you put it right next to the table at the top of the window (so that it's directly associated with that information, rather than information right above it) and just called the checkbox “Spot(s) to process” and had it only visually reflect the content of the sleected spot colors in the table, then I'd see your point with likening it to the “Hyphenate” checkbox.
    If a story has two selected paragraphs that uses two different hyphenation settings then the checkbox should present the way it does now, but if you hit the checkbox so that both paragraphs now use hyphenation and create a third paragraph inbetween the two previous ones it better inherit that setting and not turn off hyphenation for the new paragraph (unless of course there's a defined next paragraph style that switches to a style with hyphenation turned off). And if that checkbox said “Hyphenate all paragraphs” instead, then I would expect it to do just that, and not just the selected ones, and not just the current paragraphs but quite literally all paragraphs even newly created ones – otherwise it doesn't do what it says it does, and simply shouldn't be labeled that way.
    And seriously bad interface design aside, you'd have to rename “All spots to process” to “Switch all currently displayed spot swatches listed in the table above to process” to actually describe what that checkbox does. So even if you're a fan of the current functionality, as opposed to one that actually lets the user set and forget a setting like that, and think it's better that users manually check it repeatedly (which I'm not saying that you are, but you're not giving me any feedback suggesting you even see my point of view with any of this, so what do I know?), then why wouldn't you still support an interface that visually matches/signals that functionality better? If it's a “Select all” checkbox supplementing a table containing a column of checkboxes, then present it that way. Don't put it at the bottom of the window next to another checkbox that works just like a regular checkbox and label it “All spots to process” – because that way you are signalling a different behavior.
    Seriously, if I was to do design using the same mentality that Adobe uses when designing their user interfaces it wouldn't be long before I lost all clients. There's a lot to be said for de facto monopolies, I suppose. Oh no, there's nothing wrong with the design, just as long as you accept it on it's own terms and don't compare it to anything relevant, and just as long as you give people enough time to understand and accept it … and surrender to it.
    For real … I wouldn't win one single pitch that way.
    Today's threads have in many ways been a thorough reminder of the following quote from the second link I provided:
    Is there an Internet rule yet stating that even the most obviously indefensible mistake will eventually be defended by someone somewhere? Awful marketing efforts get explained as genius viral campaigns, broken features become solutions.
    And whether or not you're able to see my point of view or not is really besides the point too.
    The real point was, and remains to be:
    That for those who receive lots of ads or other external files that may or may not contain spot colors it would be far more useful to be able to set a checkbox to always convert all spots to process when exporting, than the current functionality is (and I'm not suggesting eliminating the current functionality, just change so it's presented like what it really is, and then just let that separate checkbox do what it says) … causing unnecessary manual action on the user's behalf shouldn't be the business of Adobe – preventing it should.
    And here's further reading on the subject of bad Adobe interface design for those who might feel so inclined. ;-)
    Cheers!

  • 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...

  • How to find that art item has spot color?

    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 api or method by which I can find out which color type(spot or process) is applied to the selected art item?
    Thanx in advance...

    I believe this should do the trick:
    bool HasFillSpotColor(AIArtHandle handle)
       bool result = false;
      AIPathStyle pathStyle;
      AIErr error = sPathStyle->GetPathStyle(handle, &pathStyle);
      // check error
      if (pathStyle.fillPaint) {
        AIColor color = pathStyle.fill.color;
        if (color.kind == kCustomColor) {
           AICustomColor customColor;
          error = sCustomColor->GetCustomColor(color.c.c.color, &customColor);
           // check error
          result = customColor.flag & kCustomSpotColor;
      return result;

  • How to convert a PDF's Process Black to spot color

    We have been asked to build InDesign templates for a two-PMS-color math book. The design calls for two PMS colors: a dark blue for most text and red highlights.
    Because our Math plug-in doesn't work easily with PMS colors (it defaults to Process black), we hope to create all the “blue” text in Process Black. The press PDFs will have two inks: Process Black and PMS red. On press they will print the black plate in our blue PMS color.
    This plan works on press, but for non-press use, we also want the PDFs to visually match the blue and red printed book. Ideally we would convert the Black Process ink to a blue spot but I'm not sure if this can be done.
    Question 1: Does anyone know of a way to convert Process Black in a PDF to a spot color? Pitstop can convert spot to process, but we want the reverse.
    Question 2 (which I may also post in the InDesign forum) Do you know of a way to redefine (or alias?) the indesign black swatch so that it functions as a spot color?

    1 - yes, you can do this with Preflight in Acrobat Pro, but it's not on the default set of fixups.
    Open Preflight, select "Single fixups" - the wrench icon
    Options > Create New Preflight Fixup
    Give it a name (e.g. "process black to spot")
    Choose the Color category in the upper right
    Choose 'Convert to spot color' in the upper left
    Define the source parameters in the main panel (in your case, CMYK%, 0-0-0-100 with tolerance 0)
    Define the spot color to change this color into, and the alternative space for rendering (i.e. your blue color)
    If you wish, add a check to limit the conversion to certain things (e.g. text, vectors, etc.)
    Click OK to save the fixup, then click FIX to apply it. To verify the result, use the Output Preview dialog in Acrobat.

  • Export to PDF and Spot Color Reg Marks

    This sounds like a simple problem but I have not been able to find a way to do this.  When I create a document in ID with 2 spot colors and then export to a pdf and add registration marks (or crop marks) at this stage, the reg marks are created as the spot colors in the document AND Cyan, Magenta, Yellow, Black.  I am outputting to a RIP to generate printing plates.  This is a problem because I will get six plates (four with only reg marks) rather than just the two I need.  Is there a way to add the reg marks in the export stage so that they are created as only the colors that are present in the document?

    Add a slug around your document (File>Document Setup>Show Options)
    If your bleed is 3 mm and you want to add 5 mm crop marks, set the slug to be 8 mm all around
    On the master page make a line at .25 pt and place this outside the bleed area and touching the slug line
    Do this for all master pages.
    Set the stroke colour to registration.
    Export to PDF and choose to include bleed and slug.
    Don't turn on crop marks.

  • Spot Colors and Transparency

    In posters, brochures etc. designed with gradients,(AI10) when saving, I always get the "when spot colors are used w/transparency, changing them to process colors outside of illustrator can generate unexpected results."
    My printer wants spot colors and that's what he gets. I use grays a lot 'cause client can't afford colors. He prepares the plates with the required dot intensities which go to another printer who prints all. So far, things have worked out OK. However, I worry when clients want photos included, and I'm not sure what I'm doing is just luck, or the way to go.
    I open a .jpg in PS7,duplicate it as grayscale .psd,adjust and drag it on to a 150 or 300 ppi transparent background and save it. It's then "placed" in AI where it's needed and finished there.
    With only 1 previous experience working in this manner, the brochure worked fine. So, just what exactly is that darn warning above telling me?
    Do I continue to ignore it as I did the first time? Any suggestions for working with photos? I'd like to be more than just "lucky" and not have a failed work as a final product....thanks much...........m

    It's telling you that if you are printing full process CMYK, then the spot colors will be converted to CMYK and it's not guaranteed that the spot color will look the same. There is always a shift in color gamut when converting to CMYK. As you are only printing to spot colors or grey, the warning doesn't apply.

  • [CS4-5.5][JS] Problem convert spot colors to process

    Hi,
    I'm trying to convert all spot color swatches to process, but for some strange reason, some weird behavior occures.
    First I tried this piece of code...
    app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK, model:ColorModel.PROCESS};
    After running the script, the color icon changes, indicating the colorspace/model is changed. But when checking the color in detail, it's still a spot color.
    Just as a test, I tried this piece of code...
    function convertColors2Process(){
         for (var i = 0; i < app.activeDocument.colors.length; i++){
                var myColor =  app.activeDocument.colors[i];
                if ((app.activeDocument.colors[i].name != "") && (app.activeDocument.colors[i].name != "Registration")){
                        if (app.activeDocument.colors[i].model != 1886548851){
                              while(myColor.model != ColorModel.PROCESS){
                                        myColor.model = ColorModel.PROCESS;
                                        myColor.space = ColorSpace.CMYK;
                                            myColor.colorValue = [50,20,30,40];
    Now, the color thumbnail changes to the new color, but again, when checking the color. It's still a pantone color with the old values.
    No error occures when running the script and I'm able to change the color manualy in Indesign.
    How do I change the colour mode of all spot colors to CMYK?
    Thanx
    John

    Hi Larry,
    I've tried using ...
    function convertColors2Process(){
         for (var i = 0; i < app.activeDocument.inks.length; i++){
                                    app.activeDocument.inks[i].convertToProcess = true;
    This will modify the ink manager to process the spot color as process color, but the color itself is still unchanged....
    How do I modify any spot color to process color and change the colour mode to CMYK?
    Thanks

  • Spot colors and Transparency causing Overprint knock-out

    Whenever I create a PDF from InDesign (CS3) I get missing artefacts/items on print production.
    It is caused by a transparent PSD file being laid over a spot color.
    I print a /ps file and then Distill to Press Quality.
    Overprint preview in ACrobat Pro shows what I need by overprint off I lose info - this causes immense problems at all the pre-pre studios I use.
    Any pointers to a cure/reason?
    (more info if needed upon request)

    For one, please do not go through PostScript , rather export to PDF directly. When doing so, you may want to do the transparency flattening either during PDF export (i.e. in Indesign) or later on in Adobe Acrobat Pro.
    Going through PostScript/distilling adds extra potential for issues.
    Next, any print service provider who is not in a position to deal reliably with overprints, does not deserve a contract from a high profile client. Rather, find print service providers who are up to the task. A decent print service provider should produce a result that is visually very very close to what you see in Adobe Acrobat Pro having turned on Overprint Simulation and Output Preview. If the output from a print service provider suffers from missing portions or other artifacts (as those that can be seen when Overprint simulation and Overprint Preview are turned off in Acrobat Pro) then that print service provider is simply failing.
    Finally - as pointed out by Jon, the best approach is to keep the transparency in your PDFs alive and find print service providers that can deal with it (because for example they have a workflow based on the Adobe PDF Print Engine).
    Olaf Druemmer
    PS: ... or would you accept a week old bread rolls from your baker?

  • Converting a gradient from a spot color to a process build, hides vector elements

    I have been using Illustrator for many years and consider myself very familiar with it, but recently ran into a strange issue I have never seen before.
    The background element is a radial gradient with points of 0% to 50% of a spot color. The file came to me as one single layer, with the gradient in question above a vector rectangle. The rectangle shows up fine, however, until I convert the gradient from a spot to a process build at which point the box is no longer visible. The initial issue I found was that the box is beneath the gradient, but my question is why would it be visible as long as the gradient uses a spot and then disappear behind it when converted to a process build?

    Version is CS5.
    Part of what made the issue so confusing is that there are no effects applied. Applying the overprint feature or multiply effect don't effect the outcome either. It's only something that can be fixed by moving the gradient to a layer behind the element which is disappearing. My question is less about how to fix it (I've done that and moved on) and more about why this would happen - it seems to be a strange anomoly.
    In response to the replies involving the method of color conversion:
    I have used all of the methods mentioned and the end result is the same. It is starting to look to me like this is a fluke that happened with this particular file and that it is not something that can be duplicated intentionally.

  • Spot color to Process color conversion

    I have a book that my boss is wanting printed. This book is filled with RGB / Spot colors. I've discovered that if I go to the "ink manager" I can check the box "All Spots to Process", but the strange thing is after doing that I check in my swatches pannel and discover that nothing was converted. What's up with that? I also found a handy script for converting all RGB colors to CMYK, but I have yet to locate a script to convert all spot to process colors in the swatches pannel. Anyone know where I can get a script for that?

    If you are using OSX try this AppleScript:
    tell application "Adobe InDesign CS6"
        tell document 1
            set accurate LAB spots to true
            repeat with a from 1 to count of every color
                try
                    set model of color a to process
                    set space of color a to CMYK
                end try
            end repeat
        end tell
    end tell

  • Text reflow when converting from rgb spot color to process black

    The setup that I'm using is a G5 Mac OSX, version 10.4.11. The InDesign application is CS3, version 5.0.3. The fonts are loaded into Extensis Font Reserve, server 1.7.4. The InDesign document has a text box using 2 different font sets. One set, Helvetica Neue, uses the rgb spot color. The other one, a mixed set of New Century Schoolbook, is used for a paragraph which is process black. When deleting the rgb spot color from the swatches and converting it to process black, the New Century Schoolbook reflows which had already been process black.
    If I just select the Helvetica Neue type and change that line to process black there is no reflow problem.
    When I tried this document on another Mac with the same set up there was no reflow. Is this an InDesign preference problem? Thanks

    If you change the color back and then back again, do you get more reflows?
    The reason I ask is that when InDesign opens a document, it holds the existing composition of stories until you apply any edit. So, it could be that what you're seeing here is that yours and your user's setups are different enough that reflow is inevitable the moment you edit the text, and changing the color counts as editing.
    Dave

  • How to make preflight profile witch find out if exist in document spot color with name "CutContour", if not show allert,  I try many combinations but nothing works

    How to make preflight profile witch find out if exist in document spot color with name "CutContour", if not show allert,  I try many combinations but nothing works

    Thanks very much for your help, but I'm still overlooking something. I double checked to make sure that I did not have a hidden .txt file extention. I then decided to abandon the lock on preferences idea until I get it working. I converted my mozilla.cfg file back to plain text. I made sure I do not have an extra blank line at the end of each file. The syntax looks good, as far as I can tell. I'll copy and paste what I have so far. Did I have the file locations correct posted above? Also, if you feel i can delete some lines of text in my mozilla.cfg file I'll be happy to do so.
    mozilla.cfg
    <pre><nowiki>//
    pref("privacy.sanitize.sanitizeOnShutdown", true);
    pref("privacy.sanitize.promptOnSanitize", false);
    pref("browser.rights.override", true);
    pref(“app.update.auto”, false);
    pref(“extensions.blocklist.enabled”, false);
    pref(“extensions.shownselectionUI”, true);
    pref(“browser.shell.checkDefaultBrowser”, false);
    pref(“toolkit.telemetry.enabled”, false);
    pref(“toolkit.telemetry.prompted”, 2);
    pref(“toolkit.telemetry.rejected”, true);
    pref(“app.update.auto”, false);
    pref(“browser.download.useDownloadDir”, true);
    pref(“browser.search.update”, false);
    pref(“signon.autofillForms”, false);
    pref(“signon.rememberSignons”, false);
    pref(“browser.download.manager.scanWhenDone”, true);
    pref(“browser.formfill.enable”, false);
    pref(“xpinstall.enabled”, true);</nowiki></pre>
    channel-prefs.js
    pref("app.update.channel", "release");
    override.ini
    [XRE]
    EnableProfileMigrator=false
    all-lmc.js
    pref("general.config.filename", "mozilla.cfg");
    defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://bbc.co.uk");
    Again, thank you very much for your time. Do I create my own browserconfig.properties, and firefox.js? Also, I forgot to mention I'm running Windows 8.

Maybe you are looking for

  • How many playlists can you have in iTunes

    How many playlists (folders) can you have in iTunes. I have a lot of music in iTunes and would like sort them out so it is easier for me to use Eg 1 x folder for now 83 1 x folder for now 82 1 x folder for mash ups Then weekly folders so probably loo

  • DropDown - Input Field: How to create dependencies in Interactive Form

    Please look at the other post, it has been duplicated... Regards, Frank Edited by: Frank Wendel on Aug 26, 2008 4:02 PM

  • Print issue with ebay and latest Firefox

    Just gone to the latest Firefox 37.0.01 and it is not printing ebay invoices/labels correctly - I print multiple invoices at a time and it prints out every other one - it only shows every other one in print Preview. reverting back to an earlier firef

  • Beans loses data stored

    Hello, i'm developing a java application in EP 5.0 and i'm using Beans and jsp. When i load the iview, there are 2 dropdown list box filled with the data stored in the beans. These beans are filled throught a BAPI.When i make a selection in the dropd

  • Is it possible to trigger a transaction from an email sent to SAP mail box?

    Hi All, I have found a strange requirement where a transaction has to be triggered by double clicking on a line in the email sent to SAP Mail box...!!! The requirement is, a batch input program has to be executed and an email with error details has t