Setting the Color Settings (Illustrator - Javascript)

I would like to set the right color settings file using a startupscript in Javascript.
If the name of the color settings file to be set is "myColorsettings", I assumed this line should do the job:
app.loadColorSettings ('myColorSettings')
But it returns an error. What's wrong?
The manuals tells me:
app.loadColorSettings (filespec)
Thanks,
Peter

Peter, I would expect that 'filespec' needs to be a 'file object' created with a string to the full location & name of file… Some thing like…
var filespec = new File('/Library/Application Support/Adobe/Color/Settings/Recommended/Europe Prepress.csf');
alert(filespec.exists);
Sorry I don't have a version that supports this for me to test. Check for the existance of the target file then load… Oh my example was on my mac your OS may differ…?

Similar Messages

  • How can I set Illustrator CS5 color settings using Javascript?

    I can set Photoshop color settings with the app.colorsettings ('File') in javascript, but I cannot locate an object in Illustrator that would perform the same task. I can only find readonly objects for illustrator. I would like to have illustrator read a script file to set the color setting
    upon startup.
    Thanks

    Hi imagecollection, that was kind of true in 2010, color mode was possible to be changed via Actions and vbs or as
    Re: Change color space
    with CS6 or newer it is more straight forward since js can play actions, and even easier using executeMenuCommand...however I'm not sure if the OP needs to change color mode or if he wants to load color profiles.

  • Why are the colors in Illustrator and Photoshop so off?

    Hi,
    Let me just start off by saying I have the color mode in both Illustrator and Photoshop set to RGB. Yet, there is a noticeable color difference between a picture on the internet and when I paste it in for example Photoshop.
    Picture from the internet:
    Picture when pasted in Photoshop:
    It's the same thing in Illustrator. And this is not just with pictures by the way, it's affects all the colors I use, which is a major pain in the rear.
    Anyone know a fix?

    Well, my suggestion in post #13, was to help me find out what the cause of your problem is. It doesn’t solve your problem permanently but temporarily, only for the current session of Photoshop or Illustrator by making these programs show your image without applying any color management conversions.  So, you have to do this every time you open such files in these programs.
    If you want to understand what is going on and be in control, you have to go through a lot of walls of text unfortunately .
    I’ll try to explain it roughly but if you don’t understand it you need to read more about color management.
    You are using Safari and this is how its color management  works:
    https://developer.apple.com/library/safari/technotes/tn2220/_index.html
    on that page it says:
    "Important: For images that are not tagged with a color profile, their color values will be displayed on the screen by Safari with no optimization or adjustment for differences between devices in how they render colors. This may result in the colors not being displayed as originally intended"
    This made me think that like most images on the web, the image you are using doesn’t have a color profile. In that case, assuming a certain scenario based on your input, the reason it is displayed differently from Photoshop and Illustrator is because you have a color profile of your monitor used by your system that is different than the color space used for the display of the image. By default RGB Images without a color profile are displayed using  the color space set for the working space in the Color Settings of Photoshop and Illustrator. Also by default this color space is sRGB.  If your monitor was also with an sRGB profile assigned in the system, which is the case with all monitors that come without a color profile provided from the manufacturer, you should have not experienced this problem because Photoshop and Illustrator will see that the color space you want to display your image is sRGB and your monitor is sRGB, and there will be no color conversions because both color spaces, source and destination are the same.  Unless someone else has setup your system ,color management, and installed a monitor profile,  my guess is that the manufacturer of your monitor has provided a color profile installed in your system that is not sRGB.
    When you choose View > Proof Setup > Monitor RGB, this in effect turns off the color management because you are displaying the image in the same color space as the one assigned to your monitor.
    If you want to turn off the color management permanently which will be valid only when displaying images in the sRGB color space, you can assign the sRGB color profile to your monitor. This will show the images on your monitor with the same colors as those displayed without color management in the other applications and choosing View > Proof Setup > Monitor RGB will make no difference.
    Non color managed programs can display the color only in the way your monitor displays it. Color managed programs simulate other outputs on your monitor. The only way to match the display in color managed and non color managed software is to turn off the color managed software. This will display the same color values with the same color in all programs on your monitor.
    The purpose of the color management is to allow the viewer  see the colors as intended (the way the creator sees them when creating the image). Different devices and media output the same color values differently resulting in different color. Therefore, when the viewer uses different device or media the colors if not color managed properly will look different or not as close as possible.
    When you turn off the color management, or even when it is on but not properly applied, which I suspect is the case in your situation, you can’t be sure that the colors you see are as intended. In other words, you can’t tell if an image is supposed to look the way you see it, and you can’t create images providing means that will allow others to see them the way you see them. 
    So, for whatever reasons you want to make colors look the same in all your programs, have in mind that this is valid only on the current state of your monitor, and this also cuts the possibility to see and send to others colors as intended.

  • How to permanently save the color settings in terminal.app

    Hi,
    I have configured the "ls" command in the terminal.app to give colored outputs. However, I realised that for some reason the color-set used is designed for a light-colored background. When I use "white on black", the default blue color of the directories is almost invisible.
    Of course, I can change this to another color, but this problem is true for all "blue" fonts, so for example, the default color for comments in vim is also blue and thus unreadable with black background.
    This is not a problem when I use the xterm in X11. The color set there is much lighter and is perfect for a black backgound.
    By drag-and-drop method (drag the chosen color on top of the directory texts in terminal), I am able to alter the blue color to a much lighter version. This apparently changes all fonts that is blue (this includes for example vim comments), and is exactly what I wanted. But I cannot figure out a way to save this as default. Clicking "Save setting as default" button in the inspector does nothing, the new terminal window still gives you this dark blue.
    Anyone know how do I do this?
    Cheers,
    Lianheng

    Hi Nils,
    Thanks for the replies.
    I think I see what the problem is: basically the colors in the terminal are darker than that of the xterm in X11. This can be clearly seen from the vim. May be this is to do with the fact that apple terminal.app has a "better" color support?
    I quite like the default LSCOLORS settings, which is:
    LSCOLORS=exfxcxdxcxegedabagacad
    The color settings in X11 is just perfect for me at the moment. It would be so much nicer if I can make the color scheme in terminal.app look like that of the X11. If say, I change LSCOLORS to
    LSCOLORS=gxfxcxdxcxegedabagacad
    and change the color schemes in vim to a lighter theme, but this will effect the colors in X11 too, which is perfect now. Cyan will look too light in X11.
    At the first I thought by drag and dropping the colors into terminal it will alter its color map. So my question was actually how can one (if it is possible) change the color map of the terminal.app, so that it inteprets the ANSI "blue" slightly differently.
    By the way, the way that you can see all colors in vim is really neat! Thanks for that tip.
    Cheers,
    Lianheng

  • "Could not synchronize the color settings because of a program error." App keeps crashing.

    Hi, I keep getting this error message, "Could not synchronize the color settings because of a program error." whenever I click on Photoshop in my dock. A few seconds after, I'll get a crash report. I just upgraded to OS X Mountain Lion and have not been able to start Photoshop since. Illustrator, on the other hand, works fine. Any idea why this is? Any help would be greatly appreciated.

    Can you open Photoshop with the shift.key pressed?
    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by keeping command-alt-shift pressed on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • Setting the color of 3D EM Structures

    i have no issues setting the color i like for the 2D layer drawings. 
    and they are also correct on the 3D of the schematic layout
    however my problem is in setting the color in 3D layer for EM structures. They seem to be different.
    I tried setting the color of my material definitions (topmetal) under the material definitions tab of the STACKUP.
    but the color does not correctly translate in the 3D EM structure.
    please advise.

    i got it correctly setting the color of the 2D and 3D for EM structures by following your suggestion in setting the COLOR KEY. that's new to me. thanks
    but my major problem is still unsolved where the color settings of my 2D/3D schematic layouts is different from 2D/3D EM structure layout. I always set the color in the LPF file. for my case for example, my topmetal is defined in lpf as RED. but then when i draw shapes in 2D EM structure, the color for this topmetal layer becomes BLUE...quite lost on this because there's only 1 way to set the color in LPF under "General, Drawing layer 2d"...

  • Dynamically setting the color of the title in a Panel

    Hello, I know I can set the color & font of the title in a Panel using the titleStyleName in a stylesheet.  How can I dynamically change the color though?  I have a component:
             <mx:Panel id="myPanel"borderColor="{this.color1}" />
    where this.color1 is a value that changes dynamically, and thus changes the border color.  How do I do this for the color of the text in the title?

    Hi,
    Try this
    var css:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".myPanelTitle");
    css.setStyle("color",0x00FF00);

  • How to set the color to the particular row in a report

    Hi
    I have a report in which I have an edit link(I changed the id as edit link)..When I click that link, all the details(the whole row details) will be appearing on the items nearer to the report to save the changes....
    I want to set the color for the particular row when a link is clicked and the color should not be changed until I save the changes in items...After saving the changes, the report should come in the normal color...this is my requirement..i refered many forums regarding this...But could not find solution....If anyone knows,please help me...
    Fazila

    Here is how I would implement
    Create renderer
    Add SkinnableContainer element and create a skin for this container namely SkinnableContainerSkin
    find the fill section in the skin
    add bitmap fill to the fill section and give the source of the image which you are planning to use(Hopefully this is a direct way of doing, may be you need to hack this a little to get it to work)
    I've never tried this, but should help you give some idea.

  • How to set the color scale so that we can get same color for same intensity of color in various runs

    Hi
    I am trying to get the color pattern of mashed potato trays and diferent trays has different color intensity but if IF i am chsooing rainbow plateu it's giveing red color for dark region of each tray but two tray has different intensity of dark color. Can you suugest me how should I set the color scale so that I can distinguish which tray has higher degree of intensity of darkness.
    I will be obliged to get the suggestions

    Hello,
    Thank you for contacting National Instruments. I just have a few questions for you to help us clarify your application:
    What API, such as LabVIEW or C, are you programming your application in?
    Are you using Vision, and if so what specific functions are you currently using?
    Is the lighting consistent and just the color of the trays changing?
    How are you displaying the image in your program? Are you using an Image Display control?/li>
    Depending on what functions you have available, then we may be able to work on finding a way to distinguish between the different intensities. If you could provide a little information to your application based on these questions then will be able to better understand and help you with your app
    lication.
    Regards,
    Michael
    Applications Engineer
    National Instruments

  • Link Color not changing for Visited Pages - How do I set the Color?

    In earlier versions of Safari, the user could select the color used to display links that have already been visited. I can't find that option in Preferences anymore. Some visited links do show a different color, some don't. Is it just random? How do I set the color in Safari 4.0.4 and activate the behavior?

    HI,
    I think you change visited pages link colors using Google preferences.
    http://www.googleguide.com/preferences.html
    Carolyn

  • Setting the color (or background color) of a substring

    Is it possible to set the color of a substring. For example:  If I had the string "Steve is stuck and needs help" and I wanted to change it to become "Steve is stuck and needs help".
    At present I am trying to modify the text inside of a String Indicator, but am open to suggestions.
    I have been reading the LV help and it seems to suggest that you can do this using the Text.SelStart and Text.SelEnd properties, but I can't get over that last hurdle that actually updates the string.
    Regards
    Steve
    https://decibel.ni.com/content/blogs/DailyCLAD
    Solved!
    Go to Solution.

    So close.
    Thanks All
    https://decibel.ni.com/content/blogs/DailyCLAD

  • How could I set the proxy settings for just some URLs and not for all?

    Hello,
    I am using HttpURLConnection to establish a HTTP connection . The connection pass through a proxy, and it requires security.
    I know that I can set the proxy settings in the system properties, and this works perfect.
    But I don't want to set the proxy settings in the system properties, because this proxy settings will be for ALL the URLs, and I just want for a few URLs.
    How could I set the proxy settings for just some URLs and not for all?
    Thanks

    java.net.URL.openConnection(java.net.Proxy proxy)
    @since 1.5

  • Could not synchronize the color settings because of a program error.

    Hello,
    I am using PS CS 5 on a brand new MAC OSX 10.9.4.
    Upon startup of PS, I get this message:
    "Could not synchronize the color settings because of a program error."
    If I click "Okay", the message goes away and I can use PS. What does this message mean and how do I fix it?
    Thanks in advance.
    Patrick

    Just ignore it.
    The message refers to color settings not being identical in all installed applications. And they don't have to be - mine are deliberately unsynchronized and I have no desire whatsoever to synchronize them.
    Note that color settings are stored under your user account and are not removed with an uninstall. So the message could well refer to uninstalled apps, trial versions, anything you once had on your system.
    Personally I think this is a useless and misleading warning and they should just remove it, considering the amount of confusion it causes.
    Spinipes, the printing crash is unrelated to this. Start a new thread for that.

  • Can you set the color of a specific element in a JList?

    Is it possible to set the color of a single element in a JList without writing lines and lines of your own class? I know setForgroundColor exists, it just changes all element in a JList, so is there a simple way to tweak it? i am still a newbie, so re-writing swing, would be a bit of a problem for me. Any Suggestions? thanks.

    you write your own renderer, about 6-8 lines, setting the color determined by an
    if/else statement - note: you must set the color in both if and else
    search the forums for
    "implements ListCellRenderer"
    and you should find plenty of examples
    if you just want the selected element a different color, you can do this with
    UIManager.put("List.selectionBackground", new javax.swing.plaf.ColorUIResource(Color.YELLOW));
    but you must do this before you create the JList, and it will affect all JLists in your program.

  • Is it possible to change the color settings of ides 4.7 to make it appear .

    hi all...
    I want to take some snapshots from ides 4.7. Please tell is it possible to change the color tone of ides 4.7 to make it appear like ECC 6. How to change the color settings?
    Thanks!

    Install Tweak SAP gui .

Maybe you are looking for

  • 'back' not working in Calendar

    using 1.4...37 against 9.2.0.4 The 'BACK' button doesn't work but can go forward and today with no problem. http://ooug.oug-ottawa.org:7778/pls/htmldb/f?p=103:10:2450876552869646305 That's the URL for my site, will be launching it to the rest of the

  • Can't get Filevault to turn off

    I can't get filevault to turn off. I go to system preferences and click turn off and it looks like its about to then its comes up wit a message saying cannot turn filevault off...error...then it says its going to stay on my home folder..I need to tur

  • Shoot in PAL or NTSC

    I have read a lot of discussions on this subject and used the mighty search function but still it seems there is no definitive answer. So I've come to the experts. I'll be shooting a big project very soon and the client is based in Europe but they wa

  • Single best external storage solution for Mac Pro & MacBook Pro ...?

    Hello, I'm still waiting for the Mac Pro delivery I have around me something like four external hard drives from different vendors and different sizes and all containing important data ... it is really a mess, cables, lack of redundancy, etc. I wante

  • Asia/[China] - wrong dayligh saving information?

    'loha Folks, because the Timezone information was obsolete, i recently updated the Java Timezone data from 'tzdata2003a' to 'tzdata2008g' by using 'tzupdater.jar'. After as before, the values seem to be wrong for China. As far as i know, there is jus