[AS] getting valure of color

Hi
how would I go about getting the value of a color?
I have tried the below but it errrors  "Adobe InDesign CS3 got an error: Invalid parameter."
tell application "Adobe InDesign CS3"
    activate
    set _myDoc to active document
    tell _myDoc
        set _Colour1 to swatch "PANTONE 238 U"
        (get value of color _Colour1) --as string
    end tell
end tell
cheers
Kev

Your original was probably better, with the word color omitted before the reference:
        (get value of _Colour1) --as string
Shane Stanley <[email protected]>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

Similar Messages

  • Performance is very slow, i continue to get the spinning color wheel whenever i try anything (email, browser, word, etc)  any ideas

    Performance is very slow.
    I continue to get the spinning color wheel on whatever I try.
    It doesnt matter if its an email, browser or document of any kind it takes several seconds for anything to happen.

    Hello, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • How to get the reverse color of a color

    how to get the reverse color of a color
    thanks

    int red = Math.abs(255 - oldColor.getRed());
    int green = Math.abs(255 - oldColor.getGreen());
    int blue = Math.abs(255 - oldColor.getBlue());
    java.awt.Color inverseColor = new java.awt.Color(red, green, blue);
    Where oldColor is a java.awt.Color object.
    Hope this is want u need !!!

  • My 24" iMac seems to gets the spinning colored ball a lot, seems it is running slow a lot more than it did before any suggestion?

    My 24” iMac seems to gets the spinning colored ball a lot, seems it is running slow a lot more than it did before any suggestion?

    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    In the Memory tab, are there a lot of Pageouts?

  • In Preview, I suddenly am unable to get the "Adjust Color" tool panel to edit images. I just get the rectangular image selection tool instead. How do I ge the "Adjust Color" tool panel back?

    In Preview, I suddenly am unable to get the "Adjust Color" tool panel to edit images. I just get the rectangular image selection tool instead. How do I ge the "Adjust Color" tool panel back?

    Hmmm, I wonder if that window is hidden or off screen? Have you moved the pic window around to look under it?
    Might try this...
    Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions.
    Then move these files to the Desktop for now...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    /Users/YourUserName/Library/Preferences/com.apple.Preview.plist
    /Users/YourUserName/Library/Preferences/com.apple.Preview.bookmarks.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • Can I get back the color control bar?

    After a 5 hour download and install, the most noticeable change is that Apple changed the left-hand side control bar from colored to all gray. 
    Frankly, I've been very disappointed with Apple's design changes lately, and this one is another example, although, I love the new translucent trash can.  I've figured out work-arounds to many of the changes I find most offensive (e.g. my folders are no longer Yosemite-native neon blue.) 
    Is there a way to get back the colors on the left-hand side control bar in iPhoto? 
    I don't mind digging through hidden folders and re-building the icons so that my interface looks good again.  Any suggestions are appreciated.

    If you want to restore the color to the Finder's sidebar give the open source application cDock a try.  You can change the Dock's background scheme (I use transparent) and add color icons to the Finder's sidebar:

  • Can U Get Different Key Colors For pro 13"

    Can U Get Different Key Colors For pro 13"

    Can you do something in the javascript code where you have given specific IDs to each buttons in your menu? It could end up in something like "$('#menu_id').css('background-color', '#1B3E70');"
    Or, let say you have controls defined like thie:
    <body>
    <ul class="menu">
    <li class="menu-item"><a>item 1</a></li>
    <li class="menu-item"><a>item 2</a></li>
    <li class="menu-item"><a>item 3</a></li>
    </ul>
    </body>
    Can't you write at render stage this kind of actions by index:
    var i = $("li").index( $(this).parent() );
    if ( i === 1 ) {
    $('body').css('background', 'red');
    } else if ( i === 2 ) {
    $('body').css('background', 'green');
    } else {
    $('body').css('background', 'brown');

  • Can I get different background colors on menu items?

    I've been trying to get different background colors on my menu (Quick launch) items for a while, without success. What I want is the even numbered items (the second, fourth, sixth...) to have a different background color than the uneven ones (first, third,
    fifth...).
    Anyone knows if this can be done?
    Thanks, guys!

    Can you do something in the javascript code where you have given specific IDs to each buttons in your menu? It could end up in something like "$('#menu_id').css('background-color', '#1B3E70');"
    Or, let say you have controls defined like thie:
    <body>
    <ul class="menu">
    <li class="menu-item"><a>item 1</a></li>
    <li class="menu-item"><a>item 2</a></li>
    <li class="menu-item"><a>item 3</a></li>
    </ul>
    </body>
    Can't you write at render stage this kind of actions by index:
    var i = $("li").index( $(this).parent() );
    if ( i === 1 ) {
    $('body').css('background', 'red');
    } else if ( i === 2 ) {
    $('body').css('background', 'green');
    } else {
    $('body').css('background', 'brown');

  • How to get the "CMYK" Color percentages?

    Could you please advise me how to get the "CMYK" Color percentages of every pixel via scripting.

    You have to be patched to the 10.0.2 version of FM and you must use the CMYK option with SaveAsPDF. If thee colour is defined as Spot in the FM file, it should remain as a spot colour in th PDF. However, that being said, the CMYK route is still a bit wonky (even in FM12) and you may get odd results in your PDF.
    Alternatives are to make the fix in Acrobat with the Print Production tools (or even better to use a third-party tool like Enfocus Pro) or to use GrafikHuset's (now freebie) PubliPDF to convert FM's RGB postscript output to CMYK+Spot PDFs. Download at: http://design.grafikhuset.dk/index.php/kontakt/downloads/grafikhuset-publi-pdf and more details available at: http://www.grafikhuset.net/PubliPDF/

  • Getting Used Spot Colors in a Color Legend on MAC JS or Applescript

    Hello again:
    I've been looking around for a script that will take the used spot colors in a document and place them in a predetermined spot. I've came across several posts about this, such as the COLOR CHIPPER although I think it's focus was on swatches, but it's kind of confusing me. What is confusing is the part of making New CMYKColor or RGB or if I even need to do that. I've looked at other posts and the Adobe docs, but none seem to help. Adding the text isn't difficult, it's getting these spot colors to reflect what's in the document that is. From what I'm seeing now:
    I may have to use some other type of script such as Applescript to get rid of unused swatches first throught the actions panel, but I'm not sure.
    I could possibly use the getByName method to call out the specific rectangle and the and relative callout with the appropriate color instead of having to position everytime.
    I'm going to keep working on it, but if anyone has any ideas, I would appreciate it. Thanks

    Hi,
    I like to use this script.
    Please share it to me.
    My email ID: [email protected]
    MOhan

  • Cannot collect online to get to Kuler colors?  Have always been able to in the past.

    Cannot collect online to get to Kuler colors?  Have always been able to in the past.

    I have the same problem. It just stopped being able to connect. I do not have an IT person and so far the only advice I've gotten is to contact the IT. Hope somebody has an answer for this!

  • How to get spot channels colors data and get spot channels length

    File is cmyk format..spot channel color is cmyk .such as an spot channel color is c100m50y20k5
    how get spot channels color data use javascript? c=? m=? y=? k=?
    howv to get spot channel length n(don't cmyk channel) use javascript?  such as file cmyk + 7 spot channel    n=7
    pls help me

    You may want to post over at:
    Photoshop Scripting
    And you may want to elaborate on what this is supposed to mean:
    File is cmyk format..spot channel color is cmyk .such as an spot channel color is c100m50y20k5
    Maybe posting screenshots with the relevant Panels visible might help illustrate the issue.

  • Getting incorrect JComboBox color through UIManager in Nimbus Look&Feel

    Hello all,
    As I implementing a multi columns JComboBox, I need to provide my own custom ListCellRenderer.
    * @author yccheok
    public class ResultSetCellRenderer extends javax.swing.JPanel implements ListCellRenderer {
        // Do not use static, so that our on-the-fly look n feel change will work.
        private final Color cfc  = UIManager.getColor("ComboBox.foreground");
        private final Color cbc  = UIManager.getColor("ComboBox.background");
        private final Color csfc = UIManager.getColor("ComboBox.selectionForeground");
        private final Color csbc = UIManager.getColor("ComboBox.selectionBackground");
        private final Color cdfc = UIManager.getColor("ComboBox.disabledForeground");
        @Override
        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
            System.out.println("UIManager.getColor(ComboBox.selectionForeground) = " + UIManager.getColor("ComboBox.selectionForeground"));
            System.out.println("UIManager.getColor(ComboBox.selectionBackground) = " + UIManager.getColor("ComboBox.selectionBackground"));
            this.setBackground(isSelected ? csbc : cbc);
         this.setForeground(isSelected ? csfc : cfc);
            jLabel1.setBackground(isSelected ? csbc : cbc);
         jLabel1.setForeground(isSelected ? csfc : cfc);
            jLabel2.setBackground(isSelected ? csbc : cbc);
         jLabel2.setForeground(isSelected ? csfc : cfc);
            jLabel3.setBackground(isSelected ? csbc : cbc);
         jLabel3.setForeground(cdfc);
            final ResultType result = (ResultType)value;
            jLabel1.setText(result.symbol);
            jLabel2.setText(result.name);
            final String type = result.typeDisp != null ? result.typeDisp : result.type;
            final String exch = result.exchDisp != null ? result.exchDisp : result.exch;
            jLabel3.setText(type  + " - " + exch);
            return this;
    }I try to get the selection colors of JComboBox through UIManager.
        private final Color csfc = UIManager.getColor("ComboBox.selectionForeground");
        private final Color csbc = UIManager.getColor("ComboBox.selectionBackground");However, I realize that while I am in Nimbus Look & Feel, the above 2 return me null.
    May I know is there any workaround to overcome this? Or I had missed out something?
    Thanks.
    Edited by: yccheok on Oct 21, 2010 10:39 AM

    because "c" is instance of UIResource:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    public class NimbusComponentColorTest {
      public JComponent makeUI() {
        final Color c = UIManager.getColor(
            "ComboBox:\"ComboBox.renderer\"[Selected].background");
        System.out.format("c instanceof UIResource: %s", c instanceof UIResource);
        JLabel label01 = new JLabel("label01");
        /* //com/sun/java/swing/plaf/nimbus/AbstractRegionPainter.java
        protected final Color getComponentColor(...) {
          // we return the defaultColor if the color found is null, or if
          // it is a UIResource. This is done because the color for the
          // ENABLED state is set on the component, but you don't want to use
          // that color for the over state. So we only respect the color
          // specified for the property if it was set by the user, as opposed
          // to set by us.
          if (color == null || color instanceof UIResource) {
              return defaultColor;
          } else if(saturationOffset!=0||brightnessOffset!=0||alphaOffset!=0) {
        label01.setOpaque(true);
        label01.setBackground(c);
        JLabel label02 = new JLabel("label02");
        label02.setOpaque(true);
        label02.setUI(new javax.swing.plaf.metal.MetalLabelUI());
        label02.setBackground(c);
        JLabel label03 = new JLabel("label03") {
          @Override public void paintComponent(Graphics g) {
            g.setColor(c);
            g.fillRect(0,0,getWidth(),getHeight());
            super.paintComponent(g);
        JLabel label04 = new JLabel("label04");
        label04.setOpaque(true);
        label04.setBackground(new ColorUIResource(Color.RED));
        JPanel p = new JPanel();
        p.add(label01); p.add(label02); p.add(label03); p.add(label04);
        return p;
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          @Override public void run() { createAndShowGUI(); }
      public static void createAndShowGUI() {
        try {
          for (UIManager.LookAndFeelInfo laf:UIManager.getInstalledLookAndFeels())
            if ("Nimbus".equals(laf.getName()))
              UIManager.setLookAndFeel(laf.getClassName());
        } catch (Exception e) {
          e.printStackTrace();
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        f.getContentPane().add(new NimbusComponentColorTest().makeUI());
        f.setSize(200, 100);
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    }

  • Why to i keep getting a multi-colored circle in place of the cursor right before the browser shuts down on me??

    why do i keep getting a multi-colored circle in place of the cursor right before the browser shuts down on me??

    Open Control Panel -> Check in Mouse Properties -> Remove Checkmark from "Display Pointer Trails"
    Check and tell if its working.

  • I was able to download the Creative cloud but my Mac won't open the download. All I get is the color wheel...What should I do?

    I paid for the student creative cloud and was able to download the actual software but my Mac will not open the installer for the cloud.  I click on the download (which is the installer) and all I get is the color wheel that shows that it's having issues completing the task.  The "Finder" also says that it is not responding while trying to open the download.  Any suggestions on how to get the installer open?

    Mcleighty0 can you please post a screen shot of the behavior you are experiencing?  Please see FAQ: How do I capture and post a screen shot or video? for information on how to post a screen shot to this discussion.

Maybe you are looking for

  • Goods Issue value transfer to goods receipt

    Hi experts, does anybody know, if there exists an user exit, to take the value from the goods issues also for the goods receipt. So I change my component list and want the sum of this weights as default value in the goods receipt. Is this possible ov

  • How to import flat file as a source in DAC Client

    Dear All, I am doing some R&D,I have a problem that how can i import the flat file in DAC client which i am using as a source. Can any one please explain in detail step wise. Regards Tarang Jain

  • I keep geing an unknown error sign whenever I try to download any apps

    No matter how many times I have tried, I recieve an "unknown error" whenever I try to download apps to my iPhone

  • Theme Editor in CE 7.1 not working

    Hi everyone I'm trying to create a new Portal theme in NW CE 7.1, but as soon as I click Save it completely removes most of the theme from the preview. I'm running CE 7.1 SP5 (in case this has any bearing on the problem). Please could someone advise

  • Two Trojans found after TimeMachine backup?

    HelloSeveral weeks ago I and after a weekly manual backup I discovered that I had two Trojans and after several attempts two get rind of then they keep popping up every time I do a TM backup.When I click unlock to delete the Trojans they both disappe