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

Similar Messages

  • How do I Sync my Settings in InDesign CC?

    How do I sync my settings in InDesign CC? I get a "Sync Settings" option in both Illustrator and Photoshop but don't seem to have that option in InDesign CC.
    Thanks,
    c.

    I have to say that the whole CC serice seems to be a little 'hit and miss' at the moment. I have just found out that Folder Sharing is also not available. I purchased a 3 seat option of the CC for Teams and without InDesign CC Setting Syncing and a shared folder setup the service is much less appealing.
    Such is life, I guess...
    c.

  • How do I attain color separation in InDesign that containes Photoshop Images?

    Thank you for your time.
    I have to submit an ad that will print black with spot color (Cyan). Below (Image 1) is the ad that does not contain color separation. The publisher said that I have to provide an ad that allows for color separation, without the ad being changed. Below (Image2) shows how the ad changes when I apply the color separation, with only Cyan being selected. I have also included (Image 3) my color settings; I'm not sure if my color settings have a part in my ad changing. If you know what I need to do to fix this issue, I would greatly appreciate your help.
    Thank You.
    (Image 1)
    (Image 2)
    (Image 3)

    If your ad contains only Black and Cyan inks you should be able to send the composite PDF and it will separate in the RIP at the publisher. If this is not waht the publisher wants, you need to get verys specific instructions from them. We can help you to understand those instructions if necessary.
    The key here is that your images must be true grayscales or Black/Cyan duotones and you must not use any 4-color black elsewhere in the ad. Looking at your screen shot of the cyan plate it looks like the images are grayscale and OK, but your background gradient and black caption bars are showing cyan ink, so unless you used a cyan/black with no magenta and no yellow in them you have a problem. RGB colors cannot be used here.

  • Color settings in InDesign CS5 js

    Hi, one of the scripts loads color setting file before exporting pdf to the InDesign, but every time I go into Color Settings window it gives me this error message: "Some parameters in the color setting file could not be used. Default values will be used instead" and then my settings are not there. How could I fix it.
    Thank you for your help.
    Yulia

    It loads color setting file:
    function loadCM (){
    var myFileNameNew = myJobNumber.slice (0,2);
    var mySplitPathForSeries = myRootPath.indexOf (myFileNameNew);
    var myPath = myRootPath.slice (0,mySplitPathForSeries)
    var myFinalPath = myPath + "/~prepress/colorSettings/NDF_CmSetting_indd.csf";
    var myFile = new File (myFinalPath);
    app.colorSettings.enableColorManagement = true;
    app.colorSettings.cmsSettingsPath = myFile;
    Thank you.

  • How to define specific color for specific data in WebI?

    Hi everybody,
    I wonder how I could connect data shown in e.g. a vertical stacked bar chart to a specific color. The assignment of color in a chart is done by Webi automatically after pulling a a variable to a chart. Later on it is possible to change to color via the color palette. But how can I define a specific color for specific values of an attribute? (E.g. calue is Chicago -> color is blue; value is NY -> color is red.. etc ) Is it possible?
    Does anybody know the trick?
    Thanks in advance!

    Please refer the below links along similar lines .
    [http://www.dagira.com/2007/07/22/alerters-on-charts/]
    [http://www.dagira.com/2007/07/31/alerters-on-charts-part-ii/]
    Regards,
    Bilahari M

  • Edit Color settings (Bridge/InDesign)

    Hi all, today in office we have a discussion about Edit > Color settings (we use this setting from Bridge for syncro).
    The question is: if i change Color settings (es. i change the rgb or cmyk working space) from InDesign i change only the swatches color? Is this correct? Because the graphic imported can (or not) maintain their color profile. What is wrong?
    Many thanks!

    Edit > Color settings (we use this setting from Bridge for syncro).
    Color Settings is an application preference—you are setting the color preferences for new documents. So changing the Working Spaces in Color Settings will only affect existing documents if they have no color profile assigned (i.e., the Color Management Policies were set to Off when the document was created). If you want to change a document's profile you have to do it via Edit > Assign or Convert to Profile...
    1) if i draw a frame filled cyan swatch, this color have the profile color that i set in the color settings?
    All native colors are assigned the document's profile (see Edit > Assign profiles...). The assigned profile isn't necessarily the same as the current Color Setting's working space
    2) if i import graphic with or without icc profile the assignment will be only when i export pdf, is it correct?
    If an imported CMYK graphic has no profile embedded, or the document's CMYK policy is Off or Preserve Numbers (Ignore Linked Profiles), it will be assigned the document's profile.
    When you export a PDF, the Output settings tab determines whether colors will be converted or profiles will be included.

  • How to assign specific colors to itemcolumn in pie chart?

    I'm trying to figure out the CF pie chart specific color
    assignment to specific distinct values, i.e. a specific color is
    assigned to a specific status value so we have consistency across
    diff charts; say value PASSED is always GREEN. Help? any idea?
    thanks

    Ashka, thanks for reply, unfortunately it didn't help. I do not have "shadow" option ticked anywhere. If I do tick the shadow, an additional shadow also appears, so this shadow is somehow built into the pie-chart by default. No matter what font of color I pick that shadow is there.
    Here is a screen-shot:
    http://www.piccdrop.com/images/1227030290.png
    Thanks for your help.

  • How to make muliple row listbox using indesign cs4 plug-in creation

    Hi,
    In one scenario i want to create list box having muliple rows and columns .And there should  be an association between the row values(each row values should associate a unique value in that  row ).how is it possible in indesign CS4 ? Is it pssible in tree view? which is easy way to accomplish this?
    Thanks
    Arun

    TreeView is the recommended way, while the flat listbox is phased out / deprecated. Neither would support columns, headers etc. out of the box, but you could do that by several means - subwidgets per column, or implement your own row IControlView.
    CS4 brought the first multiple column tree view for links, based on TreeView. I have not yet revisited it in detail, but the source is in the SDK:
    source/open/components/linksui.
    Btw, the TreeView calls your unique value per row "NodeID".
    Dirk

  • 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()

  • How I fixed the missing shortcuts in InDesign CS4

    Today, I got hit by the 'missing shortcut' syndrome on my Windows install of InDesign CS4 - all menu items were totally void of any shortcut. Even cut, copy, paste had no more shortcut keys - Ctrl-X, Ctrl-C, Ctrl-V didn't do a thing.
    I tried fixing it via the Edit - Keyboard Shortcuts... menu, but there I could not even see a set name, and there was nothing I could do.
    Ok, tried resetting the preferences - no joy.
    Ok, tried wiping the 'Version 6.0' folders from the hidden folders where preferences were stored - no joy.
    I got out some diagnostic tools, and noticed InDesign was trying (and failing) to access a folder called
    C:\Program Files\Adobe\Adobe InDesign CS4\Presets\InDesign Shortcut Sets\en_US
    I checked it out - I did not have a folder called en_US in
    C:\Program Files\Adobe\Adobe InDesign CS4\Presets\InDesign Shortcut Sets
    but I did have a folder called en_GB
    Hmmm....
    I opened an Explorer window into the InDesign Shortcut Sets folder, and I made a copy of the folder en_GB and renamed it to en_US.
    Relaunch InDesign and bingo - all is well!
    Looks like InDesign is getting confused between British and US English - probably it got installed as British English, then decided it rather be US English. Why that'd be - no idea.
    So, here's what you can try if your shortcut keys suddenly disappear on you:
    1) Navigate to the Adobe InDesign CS4 folder
    2) Go into the Presets folder
    3) Go into the InDesign Shortcut Sets folder
    4) If you see a folder called 'en_GB', but no folder called 'en_US', make a copy of the en_GB and rename the copy to en_US. Possibly the reverse could also happen - you see en_US, you might want to try and copy it to en_GB.
    Hope that helps!
    Cheers,
    Kris

    Thanks for responding.
    I had all the Symptoms you list and Kris's solution sorted them out. (It's well worth keeping a backup of those folders.)
    However, I found I still had problems that may or may not be related (sorry if this is off topic). Most notably "Registration…",  "Deactivate…" and "Updates…"  buttons greyed out in InDesign, Photoshop etc. and from Task Manager I noticed that the processes would not stop when you quit these programs. Also Distiller refused to start.
    After wasting further time I made a few complaints and was finally allocated a tech person in Adobe support who was actually very helpful. By remote control he deleted the hidden file adobe_00080000_tsf data from the hidden folder C:\ProgramData\FLEXnet. We then started InDesign and I had to enter my Serial No. and register again.
    This pretty well fixed the other problems above for a day or two then I started getting "Unable to find "Adobe PDF" resource files." This was fixed by another helpful tech person in Adobe support who, by remote control had a poke around in the <C:\Program Files (x86)\Adobe \Acrobat 9.0\Acrobat\AMT> folder and surprisingly everything started to work properly again. I don't think he even moved or deleted anything but the whole suite has been trouble free for over a week now.
    Hope this helps someone.
    Kainga

  • How to reset my color settings ?

    Hey,
    I'm using Ps CS4 and recently the original colors are changed to other colors !
    see this picture *click here*
    and before I open any image this would appear *click here*
    please tell me how to reset everything.

    Princess Ame wrote:
    there are so many options!
    I just want to reset everything. how to do that ?
    Precisely because there are so many variables, resetting everything to default values will seldom be the right thing to do.
    You can, of course, achieve such a default resetting by trashing Photoshop preferences as follows:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here.
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files. 

  • How to source .Xdefaults' color settings from other config files?

    I'd like to reuse the colors I've setup in my .Xdefaults in other config files, I'm not sure if I could somehow source these from other scripts, or if I should centralize them another way...
    Any pointers ?
    cheers

    Knute wrote:
    I don't have a clue but have you checked the archwiki?
    http://wiki.archlinux.org/index.php/Xdefaults
    sure...
    Knute wrote:Though, in partial answer to your question, I would suggest that perhaps, those programs that use the terminal color notations could be affected by *colorX (where X is a number between 0 and 15).
    Unfortunately that doesn't seem to be working...
    Knute wrote:The other option, is to maybe set theose colors up in a different script that just exports the names, and then use those variables?
    Gues that's what I'll do...

  • How do I repair export settings in PS CS4 and import settings in DW CS4?

    I've just transferred from Windows XP to Windows 7 Home Premium. My export files from Photoshop CS4 in Save for Web and Devices are hidden and when I click on Save, it saves back into the open file in Photoshop. The image cannot be found in the DW web images folder as in the past. I was able to tell Photoshop how to save the image in the past (ie image only, not html) but that page no longer appears.
    Can anyone tell me where that hidden folder can be found?
    Thanks so much for a reply.

    Yes, I am the administrator and only person on this computer. The missing page is the "Save Optimized as.." window that allowed me to add the settings into specific files for DW. like Format, Settings, Slices and where to save. Is this a hidden file? if so, how do I get it back.
    The oddest thing happened yesterday: I wanted to add Meta info for a pattern I was saving for DW, I went to file information, and while I was typing, suddenly the form changed to a totally odd Patient Information sheet and it would not let me get back into my own PS pattern. Is this something new? I have never added a Patient form, anyway, how did it get into PS? Any clues on this?

  • How can I receive a trial for InDesign CS4?

    We recently made the jump from CS3 to CS5.
    But theres a few things Id like to try out to see the difference
    between CS5 & 4. Especially with InDesign
    SO... does anyone know if its still available?
    How can I contact? email address? etc...
    THANKS EVERYONE!
    WOOHOO!!! =)
    Brian Bibi
    Senior Designer
    Total Identity

    Download Adobe CS4 and CS3 Free Trials Here (incl. After Effects) | ProDesignTools
    Don't install the CS4 trial on top of a CS5 intall. First, they should be installed in chronological order for best results, and second, uninstalling an older version after a newer one (when the trial expires and you're tired of not being able to doubleclick to open any ID file, let alone CS5 files) can cause enough damage to require reinstalling the later version.

  • How to change the preference color settings ?

    Hi.
    I use a script for converting images but I can not change the color preferences in Photoshop to set a default if the RGB images of departure does not. How to change the color settings ?
    Pls help.
    Thx.

    This tech note:
    http://docs.info.apple.com/article.html?artnum=305634
    says that to change your outgoing server settings you
    go to Settings/Mail, and then "in the Outgoing Mail
    Server (SMTP) Host Name" you make your changes. There
    is no such field, not even under Advanced. How do you
    change the outgoing server and its settings, without
    having to set up a whole new email account?
    There is on MY iPhone!
    BUT it is only available for POP accounts!
    ajm

Maybe you are looking for

  • Error when trying to download AT&T's McAfee Internet Security

    I have helped multiple senior citizens with downloading McAfee Internet Security Suite without any problems until about 3 weeks ago. Everytime I click on one of the 3 locations under "Account Overview"  as listed below, I get the following message; "

  • ABAP Code + API

    Hello Friends, I have to write a method in ABAP equivelent to java method, here is the jave source code. private String constructID(String id)     StringBuffer str = new StringBuffer("0000000000");     str.append(id);     return str.substring(id.leng

  • How to upgrade to 10.4 Tiger and Xsan 1.3

    I am running Xsan 1.1 on and Xserve G5/RAID running OS X 10.3.9. I need to get everything up to date so that client machines can be running 10.4.x Tiger. What is the best upgrade path? ie... - do I upgrade server to Tiger first, still running Xsan 1.

  • Bluetooth Question Please Help!

    I just recently bought a blackberry 8110 and I love it!  The only thing i'm having trouble doing is transfering pics, ringtones, and/or contacts to my friends phones with bluetooth.  I am able to pair with with these phones and transfer the file, but

  • IPod Touch (2nd Generation) Problems

    Lately my iPod Touch has been having problems. I open an app and it closes it automatically. Once it closes I have to open it again and it works. Another problem I'm facing is this... When I go to my music section and look at the albums it has two of