CS3 : Create hidden color

Hello,
Is there any way to create a color with a script that does not goes to the swatch palette? In Indesign it is possible to create directly a color and put it to a item, i would like to create a color that is hidden for the user without myDoc.colors.add().
Thanks,
Asci

On 4/2/09 8:07 AM, "Kermy" <[email protected]> wrote:<br /><br />> tell application "Adobe InDesign CS3"<br />>     delete swatch "White" replacing with swatch "Paper"<br />> end tell <br /><br />This is targetted at the application -- if you want to do it in a document,<br />you need to insert "tell document 1".<br />> <br />> Also, it might be "WHITE", "White" or "white" is there as way to do that in<br />> one step? <br /><br />You'll need to do something like get the name of every swatch, then loop<br />through doing a comparison inside an "ignoring case" construct. Something<br />like this:<br /><br />tell application "Adobe InDesign CS3"<br />    tell document 1<br />        set colorNames to name of swatches whose name is not ""<br />        ignoring case<br />            repeat with i from 1 to count of colorNames<br />                if item i of colorNames = "White" then<br />                    delete swatch (item i of colorNames) replacing with<br />swatch "Paper"<br />                end if<br />            end repeat<br />        end ignoring<br />    end tell<br />end tell<br /><br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

Similar Messages

  • Dreamweaver CS3 creates "_notes" directories. I don't want the "_notes" directories. How do I configure DW CS3 to not create those directories?

    Dreamweaver CS3 creates "_notes" directories. I don't want the "_notes" directories. How do I configure DW CS3 to not create those directories?

    No, it makes no difference to Run-time styling.
    A design-time stylesheet is a stylesheet that is only applied to the page as you are working in DW. This is very handy if you have elements on the page which are normally hidden/visible and you want to toggle that visibility while in Design view. Or when you have content that is styled in a way that DW doesn't understand, but the browsers do - you can use a DT stylesheet to modify this styling in Design view only. I'll give you an example -
    There is a metric that is used for font sizing called "rem". A rem is a relative em value - in other words, it specifies the ratio between the actual character size and the size of a base definition for the character size on the page. In previous versions of DW, this metric was not supported. So text content was abnormally large as a result when looking at a page using Design view. A DT stylesheet solves that problem by redefining the character size in px, but only when I am working in DW. Here's a good explanation (http://www.css-tricks.com/rems-ems/)
    You also will lose (I believe) details about which files have been recently synched, and some of your local settings for guides and snap to guides.

  • Creating spot color in Illustrator CS4 js

    Hi,
    I need to create spot color in Illustrator CS4 with js, with assigned name and color values. Here what I have:
    myColor = myDoc.spots.add({name:"FOIL", colorValue:[10, 0, 100, 0]});
    But it comes out as process instead of spot and the color is not assigned.
    Thank you for your help.
    Yulia

    the add function has no parameters, you have to add them after
    addSpot ('FOIL', 10, 0, 100, 0);
    function addSpot(name, c, m, y, k) {
        try {
            swatch = app.activeDocument.swatches[name]; // if swatch exists....
            addSpot (name+='1', c, m, y, k); // ...add 1 to swatch name
        catch (e) {
            var newSpot = app.activeDocument.spots.add();
            newSpot.name = name;
            var newColor = new CMYKColor();
            newColor.cyan = c;
            newColor.magenta = m;
            newColor.yellow = y;
            newColor.black = k;
            newSpot.colorType = ColorModel.SPOT;
            newSpot.color = newColor;
            var newSpotColor = new SpotColor();
            newSpotColor.spot = newSpot;

  • To create custom colors for exception

    Hi experts......
    I need to create custom colors for my report in order to set exceptions. Shades of red,yellow and green is just not enough for my client, they want to see blue as well when certain exception rises. Can someone please give me a hint as to how to implement that ...is it got to do st with the mime repository?
    Thnaks in advance!
    Tina

    Hi Tina,
    You can do this by formatting in the workbook. Run the query and in the workbook, on the BEx toolbar, there is a button for formatting. Select the exception cell whose color you want to change > in the Format button choos epatterns and select the color you would like. Once you have made the changes, save the workbook. The changes will remain in place the next time the user runs this workbook.
    Take a look at this link for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a559ee09411d2acb90000e829fbfe/content.htm
    Hope this helps...

  • I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guess

    I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guessing it's Illustrator's formatting but I don't know. How can I find out if Illustrator will open the file and allow alterations? The image opens only in Apple's Pages software?

    rons,
    It seems that all you have is a raster image, presumable PNG24 or JPEG, in RGB.
    It may have been created as raster artwork in Photoshop, or it may have been created as vector artwork with the help of Illy, or as a mixture of vector and raster artwork in either application, or both combined.
    If you just need to have a raster representation in black and white based on the current colour image, you may try this, in a new RGB document (View>Smart Guides are your friends):
    1) File>Place the image (you may tick Link or untick and have it embedded);
    2) Create a rectangle with black fill (R = G = B = 0), at least as large as the image, and place it behind the image (you may ClickDrag with the Rectangle Tool between opposite corners, then Ctrl/Cmd+X+B);
    3) Select all and in the Transparnecy palette flyout click Make Opacity Mask with both Clip and Invert Mask ticked.

  • Creating Hidden iView to get refresh UWL task list

    Hi @ll,
    i would like to know how can we create hidden iView to update task list in UWL using refreshUwlBackend event.

    Hi,
    You cannot use an invisible WD Java iView because the application is not executed if the iView is not visible.
    I don't know if it would work with other types of iViews.
    Regards,
    Pierre

  • Create New Color

    I am programming a System where I need to use many different shades of colors. Actually many shades of a 2 or 3 main colors (like red blue and green)
    The Colors Java has provided is not enough for for this purpose.
    I need to create many different shads blue and so on
    Is it possible to use RGB or some format like that where you can create your own colors.
    Any help would be greately appreciated ..
    Thanks.
    Shirantha

    Either I don't understand the question or you haven't read the API.
    The Color class has constructors that allow you to specify RGB values when creating a Color object.

  • Hidden color in PNG transparency. How does photoshop define it and can i change it?

    There is hidden colorinformation in PNG transparency. I need to set the hidden color to black.ow can i change this information?
    You can see the false colorinformation of the PNG, when you open the file in Paintshop Pro.
    My workaround of this is using PSP instead of Photoshop.

    Nice! Never thought of Shift clicking the Mask...Thank you for that information!
    So when i click on the mask, i really get those hidden information. But i cant change it, do i?
    I am using CS6.
    And mask from transparency does not work for Smartobjects or does it?

  • In Katie's Cafe tutorial, how did she create her color sample?

    In the Adobe Muse tutorial for Katie's Cafe.  How was the color sample created.  She just had us drag it onto our Muse document, but how was the color palette created initially so that it can be used in your Muse document?
    Thanks!

    I think I figured out the solution to the problem people are having.  It has to do with the order that you do things when you try to bring in colors from somewhere else.  If you try to just take colors from somewhere else (ie copy and past them) muse will not recognize them as swatches and even if you take the colors and put them in rectangles in muse and save them to a library muse will still not recognize them as swatches.  What you have to do to create a color set like she did in the tutorial is as follows....
      Copy/Paste your colors into muse
      Make rectangle objects in muse that contain the colors
      Open up the swatches window and click add swatch
      Select one of the colors you added - click ok
      Repeat this process for all the color rectangles you have made
    Now you can use the selection tool to select all the colors you made and create a library with them that will work.
    The issue people seem to be having (and that I myself had) is that when you just copy/paste colors into muse it does not automatically make a swatch for the new color.  When she uses the swatch library in the demo it does add the swatches automatically.  This happens because she went through the process of creating the swatches in muse first (which you are never shown) and not just copy/pasting the colors from some other program.    

  • Lightroom 5.7. How to create custom color labels.

    I would like to create custom color labels. I have created names for five colors, but the "custom" color (white) does not appear to be customisable
    Any ideas? Ideally I would like two more color labels.

    There are two versions of LR, a cloud-licensed version and a serial-number-licensed version.
    It sounds like you’ve installed the cloud one which Adobe makes very easy to do, hoping you’ll signup for the cloud.
    Assuming you have a serial-number from your purchase, you should uninstall the cloud-licensed LR trial, and then install the serial-number-licensed version from the Adobe Updates page and input the serial number:
    http://www.adobe.com/downloads/updates

  • InDesign CS3 hangs with colored spinball after start application

    We have inhouse a big problem:
    in different times hangs indesign CS3 with the color spinball. After the interruption of the application and restart we can see follow: when the app is up and we think, yes! we can work the spinball comes back and we can wait...if we wait to work after the restart 1-2 minutes the spinball comes for 20-30 seconds and then we can work without problems. As far as the next time (normally within 1 week...).
    We have checked the switch, the cables. We have this problem also without network connection. And it reproducible on mac 10.4.x, 10.5.x, Windows XP and Vista. With versions 5.03 and 5.04.
    What is this for a problem?
    We have deleted all preferences and moved the plugins outside (we have 3 plugins: Softcare K4, Linotype Fontexplorer and Typefy): This problem is always here.
    We are helpless. Can you us?
    Thanks for a solution!
    Zeljko

    Did you also install any new fonts? That looks like a font error.

  • Copying a CMYK Indesign CS3 photo element into a Photoshop CS3 RGB document - color retention?

    Copying a CMYK Indesign CS3 photo element (photo silo) into a Photoshop CS3 RGB document - color retbtion issues in a Smart Object?

    What a bad idea pasting an image into Indesign instead of placing it is.
    I would recommend writing an X4 pdf without downsampling and compression and opening that pdf in Photoshop (but set to »Images« instead of »Pages«).
    And if the image is unprofiled Edit > Assign Profile with the indd’s profile before converting it to RGB.

  • Creating Hidden Partitions

    Hello...
    ...Does anyone know how to create a hidden partition on a Macintosh computer? More specifically, does anyone know how to install the Mac OS in a hidden partition on a Macintosh computer? If I understand correctly, it is possible to hide files and render them invisible (are not the crucial OS system files already hidden?) by placing a period (".") at the beginning of the file name (for example, ".filename"). I have read that it is possible to hide a Mac OS partition by placing a period before the partition volume name, although my attempts to do so have been unsuccessful. I may not be doing so correctly. Perhaps one must do so from the root level account or by using "terminal"?. Yet, it is possible to render hidden/invisible files visible, possibly even allowing access to the file, using the Finder (if one knows how). I do not believe this strategy of placing a period at the beginning of a file or volume name offers the same level of protection as the standard method of creating hidden partitions on a Windows based PC, which renders the hidden volume inaccessible if I remember correctly (even if it is rendered visible), unless one were to access the drive using a repair disk (for example). Any assistance with this issue will be sincerely appreciated.
    Thanks in Advance,
    -Phantasy
    P.S. = Please forgive me if any of the preceding statements are incorrect. I am new to the Mac OS, as well as computers in a way, although I have used computers to a very limited extent over the past 20+ years.

    For Boot camp running XP, it is required to create partition using the boot camp installer since the xp won't install if you create a partition for it using other than boot camp.
    What you could do maybe you can split your HD into 2 partition of HFS+ 20 GB for os x and the rest is blank.
    And when you run boot camp, point it to create windows partittion on the blank partition 10 GB and after you done with all xp installation, go back to os x and re-format the rest of blank partition with ms-dos (fat 32) format.
    But remember when you got 60Gb HD, you only getting around 54 Gb something so the size might be not as ideal as you want.
    And in my opinion 20 Gb for mac and 10 gb for xp is a little to low, not to mention the need of free space for virtual memory to work on.
    I rather have 25 gb for mac os x, 15 gb for xp, and the rest for data. Or half of hd for os x and half for xp but formatted using fat 32 (if they give you the option during installation) and you can use that xp partition as you mac os x data folder as well since os x can access fat 32.
    Good Luck.

  • How do you create a color profile?

    I'm looking for a way to creat a color profile so I can output a pdf from ID as grayscale.
    Thanks,
    Matt
    This is in relation to http://forums.adobe.com/thread/497609?tstart=0

    I'm going to lock this thread and we'll keep everything in the other one.

  • Create hidden SSID in Windows 8/8.1

    I need to create hidden ssid in windows 8 using the netsh wlan command.Kindly help me to do the above.The process of creating the ssid details in in the following linkhttps://technet.microsoft.com/en-us/library/cc755301(v=ws.10).aspx

    Hi KeithWeisshar,
    WSD drivers are supplied and supported by Microsoft.  The version numbers and dates are not comparable to the numbers and dates for our drivers.  While WSD will provide you with basic printing capability and some features, to get the most from your printer, I recommend using the drivers found on our website. 
    If you have any other questions, please feel free to Contact Us!
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for