Changing colors in Illustrator--automation

I have 1500 documents that use black, c0,m0,y0,k50 and 0c,0m,0y,0k as their colors. I want to change the 50k to 100m and the 0,0,0,0 to 100y. When I option drag the new color on to the old color in the swatch pallet, it changes the color in the swatch pallet but not in the artwork itself. Is there any way to get it to change the color in the artwork by editing its original color?
I can't use the select/same fill color to globally change the color because it only changes the first color. The action recording doesn't pick up that I have selected a new object color to change, so it just changes the same objects again to the second color, completely ignoring the second set of objects that I want to change.
Very frustrating since Freehand did this out of the box 6 years ago.
Thanks for help.
rich

Here's an AppleScript which does what I think you want.  Copy and paste into a new window in the Apple Script editor and save in Adobe Illustrator CS4>Presets>en_US>Scripts. (or you can just run it from the script editor)
-- BEGIN CODE
set fileTypes to {"EPSF", "PDF ", "ART5", "TEXT"} -- file types available to resave as Illustrator
-- get a sourceFolder that holds the files to resave as AI
set sourceFolder to (choose folder with prompt "Choose a folder with files to resave as Illustrator:") as text
-- get a list of files of the defined type in the sourceFolder
tell application "Finder" to set workingFiles to (every file of folder sourceFolder whose file type is in fileTypes) as alias list
-- now you have your fileList argument
-- get a destinationFolder to hold the PDFs
set destinationFolder to choose folder with prompt "Choose a folder to hold the Illustrator files:"
SaveFilesAsIllustrator14(workingFiles, destinationFolder)
on SaveFilesAsIllustrator14(fileList, destinationFolder)
    set destinationPath to destinationFolder as string
    repeat with aFile in fileList
        tell application "Finder"
            set fileName to displayed name of aFile -- get displayed name
            set AppleScript's text item delimiters to "."
            set newFileName to text item 1 of fileName
            set newFilePath to destinationPath & newFileName & ".ai"
        end tell
        tell application "Adobe Illustrator"
            open aFile forcing CMYK with options {update legacy text:true}
            set theList to every page item of current document
            repeat with k from 1 to count of theList
                if stroke color of item k of theList = {class:CMYK color info, cyan:0.0, magenta:0.0, yellow:0.0, black:50.0} then
                    set stroke color of item k of theList to {class:CMYK color info, cyan:0.0, magenta:100.0, yellow:0.0, black:0.0}
                end if
                if fill color of item k of theList = {class:CMYK color info, cyan:0.0, magenta:0.0, yellow:0.0, black:50.0} then
                    set fill color of item k of theList to {class:CMYK color info, cyan:0.0, magenta:100.0, yellow:0.0, black:0.0}
                end if
                if stroke color of item k of theList = {class:CMYK color info, cyan:0.0, magenta:0.0, yellow:0.0, black:100.0} then
                    set stroke color of item k of theList to {class:CMYK color info, cyan:0.0, magenta:0.0, yellow:100.0, black:0.0}
                end if
                if fill color of item k of theList = {class:CMYK color info, cyan:0.0, magenta:0.0, yellow:0.0, black:100.0} then
                    set fill color of item k of theList to {class:CMYK color info, cyan:0.0, magenta:0.0, yellow:100.0, black:0.0}
                end if
            end repeat
            save current document in file newFilePath as Illustrator with options {class:Illustrator save options, embed linked files:false, PDF compatible:true, font subset threshold:0.0}
            close current document saving no
        end tell
    end repeat
end SaveFilesAsIllustrator14
-- END CODE

Similar Messages

  • Script to change colors of Illustrator shapes based on excel data?

    Hi. My Problem: I have a list of names in excel and I would like each name to correspond to a given color. And I have the same number of shapes in Illustrator which I would like the color fill to match those names/colors from my excel file. Is this possible with an easy script?

    There is an Illustrator scripting forum… Hardly anyone in it but it does exist… It 'may' be possible without script… If not it 'should' be possible with script… Look at data sets first…

  • Bright areas on imported footage change color

    Having just returned from shooting interviews at a trade show, I decided to give FCP X a go. I downloaded the trial version and imported some footage. When I import footage shot on our Sony Z1 (HDV), all areas that are near or over 100 IRE start changing color (as illustrated in this screen shot. Even graphics that are imported with white levels below 100 IRE have colors mixed up (black type turns white, colors invert, etc.)
    When I import the footage into FCP 7, it displays and renders just fine. If I capture the footage in FCP 7 then import into FCP X, I get the same result as shown in the screen shot. It looks like some type of clipping indicator, but I've found nothing that shows it can be turned off
    While further researching the issue, I shot some footage on my Pentax K7 to see what it would do. The results are below. As you can see, anything that should be white (in the backyard) is black, even though none of the whites exceed 100 IRE.
    Interestingly, when I render out the footage, it all looks correct. Is there some kind of clipping indicator overlay function that exists in FCP X, and if so, how do I turn the bloody thing off?
    Thanks in advance!

    See if this thread helps.
    https://discussions.apple.com/message/18564274#18564274

  • My Illustrator does not allow me to change colors using swatches panel. Help pleas.

    Few days ago I started having strange problems with my Illustrator CS5 application. I am using MacBook Pro with Intel Processor.  After major update on the Mac OS  few days ago  I noticed I can not change colors in my drawings using swatches panel. The function on my Illustrator CS5 stopped working.  When I select object and try to change its fill or stroke color using fill and stroke from the options bar above work space,  none of the swatches would work.  The are there how ever nothing hapends when I select them, the color remains the same.The same thing happens if I try to use the swatch panel, I select the object then I try to select new color from swatch but the fill or stroke does not change. I can only change color on my drawings using the color panel but that is not useful for me since I need to get precise colors using approved color swatches ether from pantone library or approved by client.
    The other strange thing is my selection tool does not deselect when I click outside on or of the artboard, the object remains selected until I reselect another object or use the keyboard short cut to deselect it.
    I have tried various options to resolve the issue from deleting and reseting preference to completely uninstalling and  reinstalling Illustrator CS5. I even installed back my old CS4 version because I had to complete a project  and the same issue is happens there as well. I also reset the application using Time Machine from few months ago when it was working correctly. What happens when I reset or reinstall the app, it works for  about 10 min correctly as it should and and then it reverts to the same problem. I am out of options and do not know what else I could  do to fix this. Right now I am working on my old Mac tower G5 and CS4 where everything works as it is suppose to, but I really need to get this fixed. Can any one help or has solution for my problem? Please.

    hey i m working on my illustrator and i m having many problems with my swatches
    for example i use the green phosphorique i don't get this color i get another green
    and many colors too it's like illustrator chooses for you the only green color
    so please i kind of need help i can show you pictures of that i print screen viewed them.. so anybody who can help... pleaaaaaaaaaase contact me because i m having a project now..
    my e mail is [email protected] i would be thankful
    i even tried to download the illustrator on my friend's computer also i m having this problem ....

  • PS file in illustrator changes color when I move it??

    When I open a ps file in illustrator some objects change color when I move them and are displayed correctly in preview and Photoshop, why and how do I fix this?
    Also the object seems to be duplicated. It should have the same and only the colors of the scale bar. In another file the image part is correct and the scale bar is incorrect.
    Should look like this:

    It is an odd problem. The "good" screen shot is from opening the PS file in mac's preview. As it is, I use several tools in illustrator to get the final image where I need it to be; several layers and what not. I have tired 5, 5.1, and 6 with the same problem. Again I have a different problem when I use a different figure:
    As you can see just the opposite problem is the case. The map part is good while the color scale if off. Both parts are made in the same way and more or less in the same sequence, I don't think it is purely a problem at birth and other software can "see" it correctly, so I don't think it is a hardware problem.  

  • Illustrator files changing colors

    i have illustrator files compiled in a book in indesign. everything looks fine and then when i create a pdf some of the illustrator files change colors (what's supposed to be black turns green). anyone know what could be happening?

    Black shouldn't turn to green. However, if you have PMS colors and you select convert to process in export you will get color shift. Does it print green? If it prints correctly, it's a preview setting in Acrobat that needs adjusting. I think if you select Show Overprint it displays correctly. I'm at home so I can't check in Acrobat Pro.

  • Images Change Colors between monitors while the UI stays the same

    Hey! Im having an issue where photoshop changes the colors when I move the window between my monitors, seen here: http://sta.sh/04y5s60vf3j This isnt due to the monitors themselves being different, it actually changes after a few seconds of moving it inbetween the monitors. The left one has been callibrated with a spyder 3 elite which I no longer have access to. I applied the file with windows color management instead of the spyder utility. The second one is new, and it is not callibrated by anything, but instead was done by hand with the built in brightness/contrast/custom RGB settings. Both of them are very close to eachother, enough so for my tastes. but when photoshop changes what the image looks like, it's causing problems. Interestingly enough, when I disable callibration for the monitor on the left, the image does not change colors between monitors, but instead always appears as it does on the right. but then they don't match up and the whole screen looked washed out because it's uncallibrated, so that doesnt do me any good. Another interesting thing to point out, is when this image is saved as a .JPG, and viewed with firefox the image appears exactly like the monitor on the LEFT (which is my main monitor) despite the left monitor being the one that is force changed. does anyone have any suggestions? It also appears that windows photoviewer is behaving the same way, though firefox does not. Meaning when I open an image in all 3 on the left monitor, they look the same, but when opened on the right monitor, windows photo viewer and photoshop both display the image as brighter and redder than firefox does. This is frustrating, because it seems photoshop is changing the image with my callibration on my left monitor to match what it looks like on the web, which it does. but it doesn't do this for the right monitor, or when the left is uncallibrated. Another issue I can see with this is even if the UI is the same shade of gray, the images are different between the monitors because of this change. Does anyone have any suggestions?
    - BD

    Alright! So I reread through all this, poked at some things on the internet, and I'm going to attempt to summarize what would be a good solution for all this (And it seems, it still won't be perfect, but to get myself into the best environment I can for not messing with images for an hour trying to make them look nice before I post them to the web. I painted something yesterday on the cintiq, popped it over to my laptop screen and it just looked washed out and terrible.)
    1. Get a X-rite EODIS3 i1 Display Pro, Callibrate laptop and cintiq. I do have the money to drop on something like this, especially if it's a time saver.
         Things I'm not sure about:
              a. There was a ton of complaints about the software not working when I checked reviews, but also a ton that said everything was great. most of them were mac users though.
              b. I'm not sure if problems would still be posed, even while calibrated, by me having a wide gamut monitor.
              c. I'm a terrible excuse for a human being and I think the colors showing up brighter on the wide gamut screen is pretty (I should just make my images this bright on a normal screen and there won't be any issues. >.>)
    2. Set Firefox to color manage (easy enough)
    3. Change my photoshop working space to sRGB (since they'll have been calibrated at this point)
    3. Accept the fact that most of the people who look at my work will be doing so on a monitor that is almost certainly uncalibrated, and I can't control what they will see on my screen, but I CAN control if the colors are -actually- what I want them to be on any properly calibrated device. which is probably the best way to go anyways.
    4. Make paintings, have fun.
    Now, you two have been going on about all sorts of interesting things in here, and it seems that calibration issue run much much deeper than I ever thought. Do either of you have recommendations for how I should tweak this list of things to do or other things I can/ should do? I'm not currently a working professional, but if I have anything to say about it, I will be within a few years (I'm going to school for illustration and studying concept design on my own time) so it'd be useful for me to get into good habits now.
    - Brendavid

  • I need help highlighting an expiration date on my Numbers '09 spreadsheet. I want the text/fill of a cell to change color when the expiration date of an item is within 180 days of the current date.

    I need help highlighting cells on my Numbers '09 spreadsheet.  I want the cell text/fill to change color when the date is 180 days or less from the current date.  I already have a cell with the current date in it.  I also know how to change the fill/text colors.  All the cells have been formatted to show date only.  I am having trouble with the formula.  I can get to the Conditional Formatting menu and select "With Dates" but after that I am lost.  Can anyone help?
    Thank you for any assistance.
    B

    Set a Conditional Format rule as shown in the illustration below. The rule has been applied to all dates in column B of the table.
    Regards,
    Barry

  • How to change colors in 2 different shapes one at the time?

    I have 4 different groups. Every group has 4 different shapes/colors. If i change Group 1 Shape 1 color then I want that Shape 2 in Group 2 color would be automatically same as Shape 1 in Group 1. Is it possible?

    That can be done in Illustrator, if vector-based artwork is a possible alternative.
    Have a look at the concept of a "global color" in Illustrator.
    This concept does not have a direct counterpart in Photoshop. Indexed colour mode comes close—but an image in indexed colour mode can't have layers.

  • Please help me how to take the "Spot Color" in illustrator?

    Hi,
    Please help me how to take the "spot color in illustrator CS" using vb script (or) java script.
    Regards,
    Prabudass E.

    Prabudass,<br /><br />If you are just wanting to see if the illustrator file uses spot colors - run the Delete Unused Panel items from the default actions. then view the swatch palette in small or large List View. The color names that have a square containing a gray circle (spot) to the right of their color names are spot colors. <br /><br />The following will get the spot color name of an existing swatch named "Color1" and change it to "Nicks Swatch" and will assign the CMYK values stated.<br /><br />if (app.documents.length > 0){<br />var swatches = app.activeDocument.spots;<br />for(i=0;i<swatches.length;i++){ var currSwatch = swatches[i]; if(currSwatch.name == "Color1")<br />{currSwatch.name = "Nicks Swatch";<br />     var newColor = new CMYKColor(); <br />     newColor.cyan = 35; newColor.magenta = 0; <br />     newColor.yellow = 50; <br />     newColor.black = 0; <br />     currSwatch.color = newColor; } }}<br /><br />When this script has run the swatch palette will not immediately reflect the changes to the swatch name until you double click on a swatch and click OK or Cancel in the Edit Swatch dialog.<br /><br />I hope that I have understood your question correctly and that these responses are helpful.<br /><br />Good Luck<br /><br />Nick

  • Changing colors globally on multple layers

    I have a CMYK file a co-worker did (who's not here no more) with about 10 different layers and a couple of them have the same CMYK color - some layers are boxes and some are type.
    I have to change the cmyk value of one of the colors (that are on mulitple layers) to a different value.
    Is there an easy way i can select that one cmyk color (instead having to click on them individually) and change the color globally throughout.
    I know Indesign and Illustrator have merge swatches - does photoshop have that capability to change colors globally on different layers?
    I hope I've made sense of this.

    Marie:
    The short answer is no, you can't. You're much better off working on the individual layers according to their characteristics.
    One way you could globally change the color is use the select... color range function to get a selection of the color you need to change, then create a new adjustment layer... hue/saturation using the color range selection as a mask. Tweak the HSL values to match the new color you need. Any feathered values (say, 50% of the original color) might be ignored.
    Another (better) way would be to go to each layer and use the layer effects to add a color overlay effect with the new color. That's the way I'd go about it. It will work with screens. The great advantage to this method is that you can option-drag the color effect from layer to layer, so it is very quick to implement (assuming you know which layers to alter). Command-control click will help you identify which layer has the color you need to change.
    J

  • How do I change color in a selection, not globally?

    Hi guys,
    My question is how do I change color in a selection and not globally? My company uses Freehand currently and there is an option to find and replace color in a selection instead of the entire document. I need to figure out how to do this in Illustrator as we will be switching over shortly.
    Thanks,
    Ron

    Edit > Edit Colors > Recolor Artwork.

  • Newbie Help! changing color

    Hey guys, new to After Effects and Ai.....so basically I imported an Ai file into illustrator and animated it....it's just the letter (H). I want the H to turn from green to blue, I opened the change color effects just fine and selected it and made the key frames on the correct layer but it just isn't changing, even as a working preview the colors just don't change but all the other animation and effects work. Is it because it doesn't have a fill? or do I have to make it a shape?

    I'd make a second separate letter in Illustrator in the color you want -- on a  different LAYER... why is it that illustrator people so often ignore layers, anyway?... import the new illustrator document as a comp into AE, then match up the positions and animate the opacity of the layer with the second colored letter.

  • Why do I get a program error when changing colors?

    I get a 'Could not complete your request because of a program error' when I try to change colors on both the forground/background palette or from the color picker palette.  Is there a patch for this?
    I am using Photoshop CS6 version 13.0.1.x64

    Hi. Because this forum is for beginners trying to learn the basics of Photoshop, I'm moving your question to the Photoshop General Discussion forum.

  • Can anyone tell me why a picture would change color when I try to download/upload it?  It is the exact same picture- chosen the same way and when it goes to any other program it changes the color (I've tried canvas on demand and mpixpro.  I've also tried

    Can anyone tell me why this picture changes color when I try to download/upload it?  It is the exact same picture I have taken from the same location.  The image on the left is via preview and the image on the right is what is shows like when I try to download it.  I have emailed it to myself and it shows fine on the computer and in CS4, but when I look at the download via my phone or on another computer it shows the wonky color on the right.  I have checked the color space shows RGB/8 bit.  Any ideas why or how to fix it?  It isn't with any one specific session.... and I've tried it on both my desktop and my laptop- saved image to an external hard drive and to drop box.  I've tried sending the image to canvas on demand, my email, mpxipro, POST editing- all the same result.  Please HELP!!  What am I doing wrong?

    Most of the time you see something like that. The image in question has a color profile other then sRGB. Some image viewers/displayers are color managed and others are not.  So the image do not look the same in all of the applications you use. So colors seem to change.
    Try converting it to sRGB color and see if then looks the same all around. Also I think PC and Mac displays are set to different gamma something like 1.8 and 2.2
    Though I'm colorblind I even see color variations.

Maybe you are looking for