Change color settings in Photoshop CS4 js

Hi,
I need to set color settings when I save_As my doc. This what I have, but it's not working:
var myFile = new File (myFinalPath);
if (myFile.exists) {
    app.colorSettings.enableColorManagement = true;
    app.colorSettings.cmsSettingsPath = myFile;
Scritp runs without problemes, but color settings remain not set. I do have the setting file saved in myFinalPath location.
Thank  you for your help.
Yulia

app.colorSettings returns a string. The contents of that string depends on your current color settings.
You have assigned two meaningless properties to the colorSettings properties. The script runs without errors because javascript lets you create new properties. But the new properties don't do anything unless the script uses them after creating them.
If you are trying to load a colorsettings file you can use this function.
function loadColorSettings( file ) {
     var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID('Prpr'), stringIDToTypeID('colorSettings') );
        ref.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
        var fileDesc = new ActionDescriptor();
        fileDesc.putPath( charIDToTypeID('Usng'), file );
    desc.putObject( charIDToTypeID('T   '), stringIDToTypeID('colorSettings'), fileDesc );
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
If you are trying to set the document's profile when saving you can use document.convertProfile()

Similar Messages

  • Changing color of GUI (Photoshop CS4)

    Hi there,
    I am trying to change a color scheme of PS GUI. My 3ds max colors, mayas ... all programs color is "sand color" such as the ms windows color. HOW can i change menus, toolbars...IN PHOTOSHOP ?? THANX VERY MUCH FOR ANSWER

    Well since Photoshop is a professional application and as Robert explained there is not much need for pros to have a GUI that will interfere with color correction. So Adobe has much more important things to fix in Photoshop.
    To me this sounds very well.

  • Color settings in Photoshop for print production

    Does anyone have experience and/or knowledge about the color settings in Photoshop?
    We have business cards that will be printed using offset printing (4 color printing) and Spot printing (Pantone), and need guidance in configuring the settings.
    Please help!

    Oh, but by the way, Photoshop is an odd choice for business cards and a troublesome one for spot colour. Illustrator or InDesign perhaps.

  • Distiller: can't change color settings anymore

    I just tried to change some settings in a specific Distiller (8) setting, but when I press Cmd-E and get to all the option tabs, I cannot acces the color tab! When I click on the word color the screens stays as it is and the little tab turns grey. After that I can't press OK or cancel: I can only switch between other tabs... Anyone knows what went wrong here? I really need to change those settings!

    Hi; now I could solve the problem for me. I had to remove my Photoshop10 color profile from Mac/Users/.../Library/Application%20Support/Adobe/Color/Settings/ because it must have been corrupted by other CS3 applications (Illu13, Indy5 etc.). Then I created a new color profile there using 'Photoshop10 > Edit > Color Settings', and to be sure I created for each CS3 app a separate one (I named it ColSetPhotoshop, ColSetIllustrator, ColSetIndesign etc.) and selected it in each app, so that those corruptions cannot occur in the future. NEVERTHELESS: ADOBE SHOULD AVOID THOSE INSECURITIES IN THEIR PRODUCTS!
    After doing so, Distiller's color tab is functioning normally.
    This hint helped me:
    From Adobeforums.com/webx/.3c05799e ...
    Distiller crashes every time I hit the color tab in the edit Adobe pdf settings menu.....any ideas what that might be?
    Dual core
    10.4.11
    thx
    paulw
    Post Reply back to top
    Mike Kazlow - 7:26pm Apr 2, 08 PST (#30 of 56)
    Could be a corrupt preference file or corrupt job options file.
    Mike
    Post Reply back to top
    vincent rousseau - 9:59am Apr 3, 08 PST (#32 of 56)
    "My Distiller crashes every time I hit the color tab in the edit Adobe pdf settings menu.....any ideas what that might be? "
    Do not use any other colour parameters than those made with Adobe photoshop or those which are pre-installed.
    If you create personal colour parameters with Illustrator or Indesign, this drives Distiller to crash when hitting the colour tab in the pdf settings.
    Remove all personal colour parameters (User > Library > Application Support > Adobe > Color > Settings) except those made with Photoshop.

  • How to inforce specific color settings in InDesign CS4 js

    Hi, I need to set specific color settings when creating a pdf from InDesign in Java script (not as a preset). What I found in previous discutions is:
    #target InDesign
    app.ColorSettings.cmsSettings="MyColorSettings";
    ( in the Forum
    http://forums.adobe.com/message/1108248#1108248),
    which just somewhat make sence to me.
    I saved my MyColorSettings.csf file in color settings folder, but I am not sure how to tell the script to access it, and I am not sure that that's the only
    reason why the lines abouve don't work.
    Thank you for your help.
    Yulia

    Yulia, everything wrong in your script: first of all, setting cmsSettings and cmsSettingsPath at the same time makes no sense — this is the same as choosing a setting in Color Settings dialog and then clicking the Load button and selecting another setting — the second cancels the first. So, you need to set only cmsSettingsPath property. If you take a look at this property in OMV, you'll see that it requires File not String, as you are trying to set.
    I would use the following code:
    var myPath = "/Volumes/SPACE/Prepress/Export settings/InDesign CS4/ShowPDFoptions_CS4.jsx";
    var myFile = new File (myPath);
    if (myFile.exists) {
        app.colorSettings.cmsSettingsPath = myFile;
    else {
        alert("File \""+ myPath + "\" can't be found.");
    You don't mention if you use Mac OS or Windows, or both at your work.
    On Mac volume name should be prepended with "/Volumes":
    /Volumes/Remote/dir/file
    On Windows, to access a remote volume, use a uniform naming convention path name of the form
    //servername/sharename.
    Or, if you have a mapped network drive:
    /Z/foldername/foldername/filename
    Where Z is a letter corresponding to your drive.
    To find out the path to a file, you can also use the following script:
    myFilePath = File.openDialog("Locate the file");
    $.writeln(decodeURI (myFilePath));
    It writes the path of the chosen file to console
    Kasyan

  • Change UI langage in Photoshop CS4

    Hi, I'm using photoshop CS4 middle eastern version, but i'm more confortable with Frensh interface, i tried to change UI language in Edit->Preference menu but it's not available.
    Th reason that i use middle Eastern edition is that i need to use Arabic.
    If you have a solution, please write to me

    hi.
    i solved this problem,
    (xx_XX is your setup disc language. For exampe AdobePhotoshop11-tr_TR (turkish))
    1-download ps cs4 eng trial from adobe sites
    2-copy from all file from \Adobe CS4\Photoshop\Adobe CS4\extensions\AdobePhotoshop11-en_US\Assets (trial expanded path) to original setup disc same path. if ask replace "replace".
    3- open Instructions.js with notepad from original setup disc \Adobe CS4\Photoshop\Adobe CS4\extensions\AdobePhotoshop11-xx_XX
    4-and Instructions.js with notepad from  trial path Adobe CS4\Photoshop\Adobe CS4\extensions\AdobePhotoshop11-en_US
    and copy from trial Instructions.js between first column and help files contains cloums. (keep firs line contains in orginal file)
    5- and save this file.
    6-install photoshop
    7-go to C:\Program Files\Adobe\Adobe Photoshop CS4\Locales path and rename your language folder
    8-start photoshop.
    im using now english. my language folder name is "tr_TR". i chanced  to "_tr_TR".i rename it again when i use photoshop my language.

  • DEP Settings for Photoshop CS4

    Dear friends,
    I installed photoshop CS4 on a Vista 32 and since then the CS4 always crashing at start up. Now after trying several times, I had it running under XP compatability. The point is, My DEP settings is set to work with programs, but the photoshop cs4 is set there as an exception, and no matter what I try to remove it or simply uncheck the photoshop, it goes back checked !!
    Please anyone can help to remove the Photoshop CS4 from the list so it can be enabled for the DEP settings?
    Thanx in advance.
    Jinx

    Yes I did, and it crashes..
    now, and after several tries, I have the DEP set on the essential, and the CS4 is not set on any compatibility, but everytime I open the photoshop it gives me a messege that my GPU is dissabled, and I should go to performance to enable it. Well if I click on performance, the program crashes, and even if I open any picture, the program crashes too...
    I don't know what the hell is going on but I did uninstall it and installed like million times, even cleand the registry ..
    Nothing is working !!

  • Color settings for Photoshop prints

    Not sure if anyone can help - I'm still working with CS2 but perhaps my problem has a simple answer.
    I did a lot of printing several years ago but had to leave it behind for a period. I'm trying to get bak into it but i'm having trouble with my color settings. My prints are coming out with rather garish or exagerated. My brain is somewhat disconnected of what I need to be paying attenion to. Anybody with advice on where to start again?

    Hi Petyer-2, welcome to the forum.
    Chances are it's one or more color-management issues (having to do with profiles, monitor setup, etc.)
    Are you printing yourself or sending the images out? 
    If the former, what color-management settings are you choosing in the Photoshop Print dialog?
    If the latter, what color profile are you saving the images in that you're sending out for printing?  What does the lab want?
    Is your monitor calibrated and profiled?  What profile is associated with the monitor?
    Feel free to put a representative image up here if you'd like a judgment on whether the image itself is garish/exaggerated.
    -Noel

  • Change Color Settings through Scripting

    We're having an issue at my work where Photoshiop is frequently losing its Color Settings.  Is there a way to modify these settings through scripting, so I can have it run automatically?  The settings are:
    Working Spaces
    RGB:  sRGB IEC61966-2.1
    Color Management Policies
    RGB: Covert to Working RGB
    Turn off “Ask when opening” for profile mismatches and missing profiles
    Conversion options
    Intent: Perceptual
    Thank you for your help.

    May be one of these will help…? Add to the event manager… You should really be looking at why this happens thou… Change to suit your settings name…
    app.load( File( Folder.appData + 'Adobe/Color/Profiles/Recommended/CoatedFOGRA39.icc' ) );
    app.colorSettings = 'CoatedFOGRA39.icc';

  • Question about custom color swatches in Photoshop CS4 Mac

    Hello.
    I have about fifty or so custom color swatches and wanted to back them up.  Where are they located in Photoshop CS4 for Mac?
    Thank you.

    They would be stored where you saved them to.
    If you have never had the foresight to save them (Edit > Preset Manager) they would only be in the Preferences (»Swatches.psp«), I guess.

  • Hi. Did I have to optimize my already optimized jpeg again after coloring it on photoshop CS4??

    I only optimized (click on the file part on photoshop CS4 and on web and devices thing) my drawing once into a jpeg, and then I just colored it and saved it on 'save' or 'save as', and I sent it to the video game guys to process into a video game.  Am I okay??  Will it still come out ok??  It looked like it came out ok from my email as it was downloadable from it. 

    Basically, never save your master files in jpeg (unless it's the top quality setting, where you only have -in theory- invisible degradation.
    Prefer PSD or TIFF that can save the individual layers, and do not compress the images destructively.
    See, for instance: http://www.photoshopessentials.com/essentials/file-formats/

  • Crash when changing color settings

    InDesign CS3 5.0.3.
    4 machines. 3 are exactly the same hardware-wise with 10.4x. 1 is new with 10.5x.
    I'm changing the color settings for CS3. I put new .csf and .icc files in their proper libraries.
    I change PS color settings on all. Happy happy.
    I change the Bridge "Creative Suite Color Settings" on all. Happy happy.
    2 machines (both 10.4x)--InDesign opens/works fine. The other two don't want to have anything to do with this new color settings---crash crash crash. Delete color settings preference and all is well.
    The situation is the same if I DON'T change the "creative suite color settings" in Bridge and try to change the color settings only in INDD.
    Has anyone else run into something similar?
    Thanks
    Corey Frix

    David,
    i am using flash cs3 on a macbook pro and have never had such issue.
    i would contact adobe about it.  They have excellent support.  i have called them on other issues and i always get very professional service.
    Good luck, Braulio

  • Printer won't let me change Color Settings!!!

    So I have the Envy 4502, and I CANNOT change my printer settings to print photos in grayscale OR black and white. It won't let me do ANYTHING but color. WHY is this printer so hard to effin' use? My last HP NEVER gave me this kind of trouble. It had an easy-to-use user interface and actually let me CHANGE MY SETTINGS.
    What the heck am I doing wrong?!

    You can update via iTunes and the computer if necessary. Also, what troubleshooting have you tried. A reset is generally something that will fix things like this. It has not affect on your data. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot.

  • MBP Changes color settings after sleep

    After my computer goes to sleep, it has recently been waking up with a different color setting. Where the yellows are very dull and the screen has a blue hue. When I go to System Pref > Displays it changes back to normal without me clicking anything. It is getting very annoying, anyone know why it is doing this?
    My computer is connected to a 24" LED cinema display which doesn't change colors on its own. The laptop has also done this without being connected to cinema display.
    Thanks guys

    This happens to me, also.
    Just as you described - it happens when connected to an external display and when not connected.
    It happens to me even without sleep; screensaver is enough.
    I have my computer set to ask for a password after sleep/screensaver. Do you?
    charlie
    P.S. I just did a search of the forums - this is apparently a very common problem, dating back at least to Leopard. I haven't seen a definitive fix for it yet.

  • MacBook Pro, dual Monitor color shift with Photoshop CS4, OS 10.5.5

    I'm observing a strange behavior: With PS CS3 i could just drag an image from
    the laptop monitor to the external Eizo and the color would adjust instantly, with
    consistent color (All monitors calibrated, no settings have changed). The same applies to Lightroom
    2.0 too. Now when i do the same move with the same image opened in PS CS4 the color does not
    adjust to match but stays the same and the result is a oversaturated image on the external monitor.
    Any thoughts? Thanks, Mark

    It should adjust to the display the same as CS3.
    Have you tried turning off OpenGL image display?
    (it could be a bug, or a driver issue)

Maybe you are looking for

  • LV 8.2.1 dependencies

    I have a problem building an EXE from a program originally written in 6.1. I have mass compiled my LV folders, saved the entire VI to LV 8.2.1, but when I try to make a project to build an EXE, it can't find some files it claims are needed for the pr

  • How can I transfer music from my PC (Windows7) to my iPad4?

    How can I transfer music from my PC (Windows7) to my iPad4?

  • After a memory upgrade programme no longer  working

    Mac Mini as server running OS 10.5.8. I just put in 1 GB of new memory in my server (Mac Mini) so now it has two modules one 256 and one 1GB. Nothing else changed. Since doing that Ovolab Phlink (is my 'answering machine' programme) stopped working.

  • How to get the name, version and path of the oracle suite(s) installed

    Hi, I am trying to gather information regarding the Name, Version and Path of Oracle installation(s) on a computer. E.g. Name = Oracle Database 9i Enterprise Edition Version = 9.0.00 Path = C:\Oracle I don't want to do it by querying the system table

  • BSP date type input datepicker blanking out

    When I introduced tabstrips to my application(main controller view) and called the subcontroller as item of each tab the datepicker dropdown for the date fields shows up as a blank box .I have read through such similar posting but the suggestion (e.g