Action to change specific colors

I'm trying to create an action to change two specific colors in ~300 different logo files (.ai and .eps). I'm coming from Photoshop so I assume there is a way to create a droplet from an Illustrator Action but that's a different topic.
The colors are Pantone 143 and 287 which need to be changed to 143 U and 287 U, respectively.
Here are the steps that I think I need to record for my action:
Unlock all layers
Add new colors to swatch board
Select all layers
Recolor Artwork... (Edit -> Edit Colors -> Recolor Artwork... This step is not recorded?)
Save file
The problem is that the Recolor Artwork step is not recorded. Can anyone explain what I should be doing to create this action properly?

JavaScript is the answer. I found this somewhere A while back. This script changes Pantone 133 to 101. It can be edited to apply to any other Spot colors.
This script requires both the old color and the new color exist in your swatches pallette before you run it.
#target illustrator
var docRef = app.activeDocument;
with (docRef) {
          var replaceColor = swatches.getByName('PANTONE 101 C').color;
          for (var i = 0; i < pathItems.length; i++) {
          with (pathItems[i]) {
                    if (filled == true && fillColor instanceof SpotColor) {
                              if (fillColor.spot.name == 'PANTONE 133 C') fillColor = replaceColor;
                    if (stroked == true && strokeColor instanceof SpotColor) {
                              if (strokeColor.spot.name == 'PANTONE 133 C') strokeColor = replaceColor;
          for (var j = 0; j < stories.length; j++) {
                    with (stories[j]) {
                              for (var k = 0; k < characters.length; k++) {
                                        with (characters[k].characterAttributes) {
                                                  if (fillColor instanceof SpotColor) {
                                                            if (fillColor.spot.name == 'PANTONE 133 C') fillColor = replaceColor;
                                                  if (strokeColor instanceof SpotColor) {
                                                            if (strokeColor.spot.name == 'PANTONE 133 C') strokeColor = replaceColor;
More answers can be found here, such as how to make it unlock everything.
http://forums.adobe.com/community/illustrator/illustrator_scripting?view=discussions

Similar Messages

  • How to change the color of specific row in ALV tree

    Hi,
    I m using method set_table_for_first_display of a class CL_GUI_ALV_TREE.
    The req is to change the color of specific row. Now can anybody tell me how to change the color of ALV tree. As in ALV tree and in this method 'set_table_for_first_display', there is no parameter IS_Layout.
    Pls suggest...

    hi
    hope this code will help you.
    Reward if help.
    REPORT zsharad_test1.
    TABLES: ekko.
    TYPE-POOLS: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    statu TYPE ekpo-statu,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    menge TYPE ekpo-menge,
    meins TYPE ekpo-meins,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    line_color(4) TYPE c, "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    gd_tab_group TYPE slis_t_sp_group_alv,
    gd_layout TYPE slis_layout_alv,
    gd_repid LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    PERFORM data_retrieval.
    PERFORM build_fieldcatalog.
    PERFORM build_layout.
    PERFORM display_alv_report.
    *& Form BUILD_FIELDCATALOG
    Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
    I.e. Field type may be required in-order for
    the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-datatype = 'CURR'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    ENDFORM. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    Build layout for ALV grid report
    FORM build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
    gd_layout-info_fieldname = 'LINE_COLOR'.
    gd_layout-totals_only = 'X'.
    gd_layout-f2code = 'DISP'. "Sets fcode for when double
    "click(press f2)
    gd_layout-zebra = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text = 'helllllo'.
    ENDFORM. " BUILD_LAYOUT
    *& Form DISPLAY_ALV_REPORT
    Display report using ALV grid
    FORM display_alv_report.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_special_groups = gd_tabgroup
    IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    is_variant = z_template
    TABLES
    t_outtab = it_ekko
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
    DATA: ld_color(1) TYPE c.
    SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
    UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekko.
    *Populate field with color attributes
    LOOP AT it_ekko INTO wa_ekko.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_ekko FROM wa_ekko.
    ENDLOOP.
    ENDFORM. " DATA_RETRIEVAL

  • How can I change the text layers to a specific color at the same time and in the fast way?

    Dear all!
    I am using Photoshop CS5. I typed 65 text layers in my file and wish to change their colors to a specific Black Color, but I don't know how to select all the layers at the same time so that I can change all the text layers from Red Color to Black Color in the fast way. Now I only select one layer and then change. It means I must select and change 65 times for the text layers. Hope you can understand what I mean.
    Thanks a lot.
    My Kindest Regards,
    LUCK

    One way is to select all the text layers, select the type tool in the tool box
    and set the color from the tool options bar.
    MTSTUNER

  • Is it possible to change the color of the text in one specific field?

    If I want to make someone's mobile number show up as the primary contact, is it possible to make the text for that number a different color or make it bold? I can't seem to find a way to do it.
    Thanks.

    Make a Shape > Inspector > Graphic > Tinted Image Fill > Scale to fit > browse to image > click on the color patch to change the color to what you want
    or
    Drag in an image > overlay it with a Shape > select the color for the shape and change its Opacity
    Shapes may have Gradient and Advanced Gradient (multiple colors) fills both linear and radial. Both are in the Graphic Inspector as is Opacity.
    Peter

  • Change bars in chart to a specific color

    I need to make a single bar in a chart a specific color. I already figured out that I had to separate that bar from the rest of the chart as an overlay but now I cannot even get it to be the exact color that I need it to be. It seems my only color options are the pre-sets that come with Keynote. That seems absurd so I'm assuming there must be something I am missing. 
    Can anyone help me out with this please?

    OK so it was something obvious. Drag and drop the color. DUH!!

  • How to I change the hue of a graphic to a specific color

    I have a graphic for external links that I will be using on my web page. It is composed of various shades of blue with one dominant color of blue. I would like to change the hue of that graphic to match the colors of my web page. For example, I want that dominant shade of blue to become #bd0000. While I can use the hue slider to change the color, how do I make that dominant blue be exactly #bd0000?
    Thanks,
    Mike

    There are a couple ways to do this, one with L*A*B* mode, the other with a channel mixer adjustment layer.  Here's what I did with the channel mixer:
    Your target color of #bd0000 has a RGB value of around 189r, 0g, 0b.
    I put a color sample point on your blue and one on pure white.
    I added the channel adjustment layer then adjusted each of the channels so that the blue color shifted to your desired color and so that the white remained white.  This meant taking the blue slider in each of the channels and adjusting your blue to match the red color.  This will make the white go off.  So then I adjusted the color slider of the same color as the channel to clean up the white.  If you have other colors this might get weird and you might have ot select just the blues with a mask.  Here's a screen shot with my settings.

  • Can I change the color of an image to a specific color code?

    Since I was unable to do this in Photoshop, I was wondering if there was a way in Flash to simply change the color of an image to a speciifc color code.  The image is more or less a simple line with rounded corners.  It is only composed of 1 color.  Does anyone know if it can be done with Flash?

    Shouldn't be a problem to do it in Photoshop or Flash. Since you couldn't do it in PS, I'm guessing that there is more to it than you are making obvious here.
    But in Flash you would import it, make it into a movieclip or graphic. Then apply a tint from the color effect portion of the properties panel.

  • How to change all specific colors to another color.

    Can some one tell me how to change all colors in Illustrator to another color all at once.
    I used to work in Freehand and you could select all, them go to a panel and have it change
    all of one color to another in a layout.
    Exp. You could change pms 356 to pms 410 without selecting each individually.
    I can't find this feature in Illustrator CS4
    Any help appreciated
    HJMann42

    Thanks Monika and Kurt.
    Figured it out. But I couldn't get it to affect groups inside clipping masks. Basically had to completely
    disassamble the logo.
    Don't know why Illustrator has to make it so difficult. In Freehand it's simple: select the entire object, open
    a panel, a few clicks and bingo it's done. Even if things are grouped, groups within groups, pasted into another group....no problem.

  • Action help to copy color in layer mask to another layer mask

    Hi all,
    Having trouble with this problem...
    I have layer 1 with a color mask set to black, red, blue etc.
    I have layer 2 with a color mask which i want to match and also become black, red, blue
    There are hundreds of files, and the color in layer 1 is always different.
    Manually i would simply click on the layer 2 mask which opens the color picker, and select the area of layer 1 i want to match.
    But doing that in an action does not work.
    I can't get the action to recognize that i want to copy the color content of a mask, and not the specific color used in the example during which the macro is recorded. The color picker does not seem capable of selecting a dynamic input (e.g. whatever color is on layer 1), it simply copies whatever was in layer 1 during recording like a dumb instrument.
    thanks for any input.

    Not sure what you mean by color mask, but I just noticed cs6 seems to have a new feature in the actions tab dropdown menu (small top right button) called 'allow tool recording'.
    I just tried to make an eyedropper action with that option turned on and now the color does change when I change the image colors and run the action again.
    Hope this helps.

  • Please, can I with help of Javascript change spot color values? for example by my color VARNISH with c:0,m:10,y:15,k:0 to make change to c:0,m:0,y:0,k:0? thank you

    Please, can I with help of Javascript change specific spot color values? for example, I have color named VARNISH with values c:0,m:10,y:15,k:0 and it would help me to make change to c:0,m:0,y:0,k:0 as a part of an action. Is it possible? Thank you

    Hi Kon Verter,
    you can change the values of your spot swatch, but you have to check many things before.
    e.g. you can do something like this:
    var Vcolor = app.activeDocument.swatches.getByName("Varnish");
    if (Vcolor.color.spot.colorType == ColorModel.SPOT && Vcolor.color.spot.spotKind == SpotColorKind.SPOTCMYK) {
        alert("Black value before: "+Vcolor.color.spot.color.black);
        Vcolor.color.spot.color.black= 0; // and so on
        alert("Black value after: "+Vcolor.color.spot.color.black);
    This will change the black value of the cmyk spot color with name Varnish to 0
    Have fun

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Changing calendar colors

    A client of mine uses a specific color code for his ical on his computer, but on his iphone, the colors are different. I see no way to change the colors on the iphone. How do I do this?
    Thanks,

    Cashman, this is actually possible. I just did it after searching for an answer.
    how i did it:
    go to iphone "Settings"
    Mail contacts calendars
    The exchange account he wants to change the color of.
    Switch calendars to off wait till it says off then switch back on.
    go and check if one of his calendars colors have changed to the color he likes.
    I had to do it up to 4x on a couple just to get it to the right color, i have 4 accounts to keep track of so colors are important to me, It wont have to be changed again. Ahh.....relief!

  • Is there a way to change the color of the Bezier Curves and points to a different color other than black  I find it perplexing while setting points and curves working on a photo that needs to be separated from it's background for placement on transparent

    Is there a way to change the color of the Bezier Curves and points to a different color other than black  I find it perplexing while setting points and curves working on a photo that needs to be separated from it's background for placement on transparent backgrounds. Any thoughts?

    Yes. Well, sort of: instead of a "path", set the pen tool to "shape" in the tool properties. Then set the fill colour to transparent, and the stroke colour to the colour you want. You can also set the stroke width.
    Not perfect, but at least you can see the path more clearly - the anchor points and handles still remain the default colour. Open the path panel, and right-mouse click the path shape to create a selection based on that shape. The Paths panel menu also allows you to create work paths based on that shape.
    Unfortunately when you try to move the handles the black thin outline appears again until you release the mouse button.
    This is one of several things that works better in Photoline: in Photoline, once the path is set to a specific colour, editing the path uses the actual colour and stroke width. which is extremely handy for creating path based selection with awkward background colours and/or a high resolution screen. In Photoline the handles and bezier points are also much, much larger, which makes it rather simpler to work with as well - especially on a higher resolution screen. And when selected the handles and points are a clear red with a black outline - again easier to spot and identify. I just works better, in my opinion.

  • Is there a way to change the color of the answer bubble for the texts?  Mine is now in gray and very hard to read

    I just updated my iPhone and would like to change the color of the bubble for the text reply.  Mine is now GRAY and it is much more difficult to read.  The outgoing text bubble is still blue.  Can I do this? 

    Yes. Well, sort of: instead of a "path", set the pen tool to "shape" in the tool properties. Then set the fill colour to transparent, and the stroke colour to the colour you want. You can also set the stroke width.
    Not perfect, but at least you can see the path more clearly - the anchor points and handles still remain the default colour. Open the path panel, and right-mouse click the path shape to create a selection based on that shape. The Paths panel menu also allows you to create work paths based on that shape.
    Unfortunately when you try to move the handles the black thin outline appears again until you release the mouse button.
    This is one of several things that works better in Photoline: in Photoline, once the path is set to a specific colour, editing the path uses the actual colour and stroke width. which is extremely handy for creating path based selection with awkward background colours and/or a high resolution screen. In Photoline the handles and bezier points are also much, much larger, which makes it rather simpler to work with as well - especially on a higher resolution screen. And when selected the handles and points are a clear red with a black outline - again easier to spot and identify. I just works better, in my opinion.

  • How can I always change the color of certain letters?

    I know that sounds weird. But hear me out.
    I was reading an article about synaesthesia, and it seems that reading with certain letters always displaying in a certain color can do interesting things.
    I'm not trying to do anything too crazy, just a little experiment on myself.
    So I'm wondering if anybody knows how I may change the color of certain letters on my Mac? I realize that'll make some interfaces look screwy, and in some instances it may not be possible - but is there a way?
    Thanks!

    Kliegs wrote:
    I've never heard of anything like this, so I'm just curious if it exists.
    You and me both, let's wait and see what other say.  My guess would be that modifications of that type aren't possible w/o some serious "modifications" i.e. hacks, if even via that method, specifically regarding the operating system.

Maybe you are looking for

  • My back light on my ipod is not working. How can it be fixed?

    My ipod back light is not working and im not sure why. I just want to knw how do i fix it and how much it will cost...?

  • How to improve the performance of the application

    Hi, We have customized the standard SRM BSP application and integrated to portal. Now it has got some performence issues. It is taking time to load the page and also while navigating between the views. We have done the performence tuning for the appl

  • Can't allocate memory

    Hello, I have an question that not really concerne OWB but rather Oracle (adminstration). This is an error that occurs after running a mapping (in mode SETBASED) that make a insert into a table of a lot of record an also make a lot of calculations fo

  • IPhone 3GS takes 2hours+ to turn on from full dead?

    So, I know this question gets asked very frequently, but I need to ask. I have a iPhone 3GS second hand (given for christmas 2012). When my iPhone is fully dead, I obviously plug it into my charger, but the problem is, the phone takes 2hours+ to turn

  • Know how to put pics in, but itunes not showing all options HELP!

    k,well I followed all the instructions to get pics in, I connected my ipod with my computer and I opened iTunes. But when the directions state, "When the iPod icon appears in iTunes, select it and click the Photos tab" I can't find the Photos tab! In