Conditional actions in Photoshop can't test for Lab color mode.

I’m posting here because the feature request/bug report form isn’t currently working for Photoshop.
I wanted to create an action to determine if the color mode of an image is Lab, and if so, convert it to RGB. But there’s no conditional action test for Lab color mode.  The list of conditions that can be tested includes RGB, grayscale, and a couple of other color modes, but not Lab,  Does anyone know of a workaround?  Can I get it done with scripting?
It would be a big help if the next update of Photoshop CC could include a conditional action test for Lab color mode.

This for example would convert an active Lab image to sRGB:
if (app.documents.length > 0) {
if (app.activeDocument.mode == DocumentMode.LAB) {
app.activeDocument.convertProfile ("sRGB IEC61966-2.1", Intent.RELATIVECOLORIMETRIC, true, true);

Similar Messages

  • How can I test for the bas unit enterd in a control?

    How can I to create a polymorphic vi where the user can enter either volume or temperature.
    how can Labwiev test for the base unit entered
    pseudocode example:
    input X
    if X.base_unit == m^3 do ....... 
    thanks for any suggestion to resolve or avoid my problem
    Solved!
    Go to Solution.

    Hi schaerm,
    you have to dig deeper.
    An idea is this one:
    The red marked word is containing the unit - in a coded way. Somewhere in the LV help you can find the description of this coding (I remember a chapter on memory representations of all LV datatypes...). (There surely is an easier or better way - but the example is done quic&dirty.)
    You can also format the number into a string and analyze the unit here...
    Message Edited by GerdW on 02-07-2010 07:21 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Executemenucommand for Document Color Mode

    How to executemenucommand for Document Color Mode in illustrator using Javscript

    Are you using the Extendscript Toolkit Editor (ESTK)? In the Help menu you can find all the properties for Document that can be queried/changed.
    (Personally, I don't use ESTK, because I really really hate it. But I don't want to miss the Help, so I made my own version. I have Illustrator CS4, and it's possible your version doesn't have this, but under Document I find:
    documentColorSpace
    DocumentColorSpace:
    DocumentColorSpace.RGB
    DocumentColorSpace.CMYK
    readonly
    The color space used for the document.
    For the how-to-use I glady refer you to Adobe's own Starting With Scripting guides.)

  • How can I test for a special character in action script ?

    I have XML which I use within Flex. One off the values passed in is a special character (the infinity symbol). This displays great within the datagrid, but I want to do some other action script rendering based on this. How can I test this in an if statement.
    XML snippit
    <data>&#8734;</data>
    var infin:String = data[column.dataField];
    if (infin == "&#8734;") // This is the bit I can’t work out
                    // Do Something here

    Hi schaerm,
    you have to dig deeper.
    An idea is this one:
    The red marked word is containing the unit - in a coded way. Somewhere in the LV help you can find the description of this coding (I remember a chapter on memory representations of all LV datatypes...). (There surely is an easier or better way - but the example is done quic&dirty.)
    You can also format the number into a string and analyze the unit here...
    Message Edited by GerdW on 02-07-2010 07:21 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can i search for a color that is not in the color palette? (CS 5.5)

    I have a client, that has used a certain color in a series of textfields throughout the document.
    The color consists of all 4 CMYK colors and needs to be just Keycolor. However the color is not in the swatches menu, so marking it there and changing it won't work. I have downloaded a script that might have worked, but it could only find colors that were in the swatches palette. (Find / Change by Color / Overprint" version 1.2).
    Ofcourse, creating a similar color and adding it to the swatches doesn't work.
    Is there anyway that i can search for the color or does it really have to be done manually.
    Best regards

    You can only search for real, actually existing swatches. No sweat: use "Add Unnamed Colors" in the Swatch panel dropdown menu to get a list of all of the manually applied colors.
    Since you want to change all of them to the same color, you don't even have to use Search/Replace. Simply delete the new colors and select the one you need in the "Replace With" dialog that appears.

  • Why does my Bridge read RGB or B&W for the Color Mode on a file, when in Illustrator I have set it to CMYK?

    I'm kind of stumped and this has been a question of mine for some time. I did some further digging on it, and did find that what it's reading is the Photoshop Color Mode XMP data, which is odd since the files were never in Photoshop, and were created in Illustrator. Is there a way to remove this info? How do I fix it?

    Probably can be chalked up to one of Illustrators mysterious color issues.
    Therefor it might be best to drop this question in the AI forum itself. I know to less of AI but just tried a bit with a new document, you can't convert to a new color profile like used to in PS, only select CMYK or RGB and assign a profile but that is not the same as converting.
    Also in color settings it says by default to preserve numbers in stead of the profile itself.
    And yes, mysteries are common at Adobe, although being one company one doubts often if they are even aware of the existence of Bridge and even other applications in the suites. Not even all file types of Adobe seem to be fully supported in Bridge…

  • I am new to scripting & I need Script for Document color mode

    Hi,
    Please help me to create a script which should find the Document color mode. I am new to scripting. And please let me know how to use the same.
    Balaji

    Are you using the Extendscript Toolkit Editor (ESTK)? In the Help menu you can find all the properties for Document that can be queried/changed.
    (Personally, I don't use ESTK, because I really really hate it. But I don't want to miss the Help, so I made my own version. I have Illustrator CS4, and it's possible your version doesn't have this, but under Document I find:
    documentColorSpace
    DocumentColorSpace:
    DocumentColorSpace.RGB
    DocumentColorSpace.CMYK
    readonly
    The color space used for the document.
    For the how-to-use I glady refer you to Adobe's own Starting With Scripting guides.)

  • Does Photoshop Elements 12 have a CMYK color mode?

    Does Photshop Elements 12 have a CMYK color mode?

    Depending on where you bought it you may be able to return it for a full refund within thirty days. Certainly if you got it from Adobe you can return it no reason required (within thirty days).
    Not quite sure why you think it is shabby though. Surely you must have realised that there would be differences between a $700 product and a $100 one.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Can I test for open or shorted accelerome​ters using an NI9234 module?

    I'm using multiple NI9234 modules to acquire data from accelerometers.  Is there anyway in LabVIEW to test the health of the accelerometers?  I'm looking for either open or shorted accelerometers.
    THANKS

    Hi NI_1424,
    From LabVIEW, we just read the voltages that are on the NI 9234. If you are expecting a voltage from an accelerometer but it is reading 0 V, it could be shorted or open. So, the short answer is "no". But you can deduce faulty accelerometers if you understand your setup and are seeing unexpected values.
    Jeff Munn
    Applications Engineer
    National Instruments

  • Action Script; somebody can do coding for me?

    We create videos, amongst others for advertising purposes.
    Short of just playing the video on the web, I want to interact with
    the viewers and receive answers to questions, which I can write to
    a database in the back. Our output format is FLash.
    Our distribution goes over a P2P network, (bit torrent like)
    so packets arrive from all over the place and the flv file gets
    reassembled just before viewing. We achieve a near live streaming
    effect, but the consequence for this project is that the solution
    must be very small, like an xml file size, or enbtirely embedded in
    the FLV file
    SCENARIO
    1- At a moment of my choice, I want to stop the video, circle
    or otherwise indicate some areas of the frame and ask a written
    question where the multiple choice answers (max 5) are inside these
    cirlced areas. The viewer clicks the cirlced area that shows his
    answer of choice. The result is written to an MySQL table on my
    server and the video continues.
    I want to have this in a template form which enables us the
    use the concept multiple times in different videos
    2- Same idea, but this time, the viewer stops the video and
    we record the frame number, afyter which the viewer writes a max
    100 char message. Again the results are written to a database on my
    server.
    Any Action Script coder interested to make a few quick bucks

    send me a brief email via my website.

  • I updated my Photoshop CS6 to Version 13.1 in order to use the conditional actions.

    After the update, I expect to see the new menu entry, but there is none.
    What else will I have to do?

    I didn't see anything about "Insert Conditional" on that page. Also, the "New Features" link takes you directly to CC versions' new features.
    I did some searching and found a definitive answer - it is only available for those with the CC version of CS6 and newer, since there was an extra update for them..  John Nack on Adobe : Demo: Conditional actions in Photoshop CS6.
    Benjamin

  • Is there a good video available for beginners which will show what Photoshop can do?

    I'm trying to find a good video which will give a general introduction to what Photoshop can do - not how to do it - for a group of beginners at our local photographic society.
    Ideally I'm looking for something which lasts 15 - 20 minutes and will demonstrate how Photoshop can be used for correcting and manipulating images, plus a short section on how it can be used more creatively.
    Is anyone aware of such a video which is preferably free to use (with obvious credits), and where it's available from?

    There are multiuser/multiplatform apps that you can use to manage your photos that can view multiple source photos.  I use  Media Pro 1.  However, you can't use iPhoto and MP on the same set of original/source image files.
    I use MP as my primary DAM (digital asset management) application and iPhoto just for special projects like books, calendars, cards, etc.
    OT

  • How to test for existence of AcroXFA test objects?

    Hi -
    I'm writing scripts to test an XFA form with dynamic subforms.  For example, at the end of Part 4, the user hits a Validate button, and if their data is correct, then the Validate button disappears and a Part 5 subform appears.
    So my script looks something like this:
    Function GetButtonPart4Validate()
       Set GetButtonPart4Validate = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1")
    .AcroXFAForm("sfPart4").AcroXFAButton("sfValidate")
    End Function
    Function GetPart5()
       Set GetPart5 = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5")
    End Function
    GetButtonPart4Validate().Click
    PDFDoc( "TestForm" ).WaitProperty "ready", true, 60000  ' Wait for event processing complete
    If DataTable("boolValidates", dtLocalSheet) = "TRUE"  Then
         If( GetPart5().Exist ) Then
              ' A: Checkpoint Succeeds: Validation was successful
         Else
              ' B: Checkpoint fails: Validation failed
         Endif
    Else
         If(  GetPart5().Exist ) Then
              ' C: Checkpoint Fails:  Validation was unexpected
         Else
               ' D: Checkpoint Succeeds:  Validation failed as expected
         Endif
    Endif
    Unfortunately it appears that XfaSubForm.Exist always returns TRUE.  In other QTP testing domains (eg "Exist Property (WinObject)" in QTP Help), the documented behaviour of the Exist property is to be true if the desired test object can be found in the application-under-test. Typically this means that when the script tries to access an XFA widget which doesn't exist (even something like GetPart5().getROProperty("visible") ), the script stops and thinks for a minute or so, and eventually produces a test error that the object doesn't exist then muddles onward. It is the "stops and thinks for a minute or so" which frustrates me, since these are delays which I am trying to avoid.
    Another possible angle I looked into was counting the subforms under Part 5's parent.
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").RefreshObject
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5").Refresh Object
    ' check to see if there is a 'sfPart5'
    Dim MyChildren, i
    Set MyChildren = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").ChildObjects
    For i=0 to MyChildren.Count - 1
        print i & " name=" & MyChildren(i).GetROProperty("name")
    Next
    This also seems to fail:  Part5 doesn't appear among its parent's children (at least before QTP actually tries to use it).
    The PDF Test Toolkit User Guide doesn't specifically mention that Exist or RefreshObject or ChildObjects are implemented, so I can't say AcroQTP isn't working as designed, but if you're looking for suggestions for improvement, I'll vote for fulfilling these parts to the QTP.  Please confirm my conclusions that these are not properly implemented, or whether I'm missing something.
    In the meantime, do you have any recommendation on how to proceed?  My present workaround is to look for a "validation error" windows dialog that indicates Part 5 won't exist, but this won't work in future test scripts.
    Cheers,
    Brent

    Hi,
    816387 wrote:
    ... QUERY:-  Find all customers who have at most one account at the Perryridge branch.
    SOLUTION *1* :-
    select customer_name
    from depositor,account
    where account.account_number=depositor.account_number and
    branch_name='Perryridge'
    group by customer_name
    having count(account.account_number) <=1
    ok running correctly
    That finds customers who have exactly one account at Perryridge.
    The assignment is to find customers who have at most one account at Perryridge. You need to include customers with 0 accounts at Perryridge, as well. You could use an outer join, or MINUS, or a NOT IN subquery, or a NOT EXISTS sub-query (as mentioned above) to do that.
    Can there be customers who have no accounts at all, at any branch? If so, you'll need to use the customer table in this problem, as well as depositor and account.
    >
    SOLUTION *2* :-
    select D1.customer_name
    from depositor D1
    where unique
    (select customer_name
         from depositor D2,account A1
         where D1.customer_name=D2.customer_name
              D2.account_number=A1.account_number and
              branch_name='Perryridge'
    gives error:-
    where unique
    ..........*^*
    ERROR at line 3:
    ORA-00936: missing expression
    Logic of both solution are correct . But Solution 2 gives error in oracle. I want unique construct to work.Sorry, it doesn't in Oracle. I don't know of anything like that in Oracle.
    Does "WHERE UNIQUE (SELECT ...)" work in some other database system? Which?
    How to do it. Or How can i test for the absence of duplicate tuples ??????
    Your Solution 1 is the best way to find customers with exatly 1 account (rather than 0 or 1 accounts) at Perryridge. Is there any reason why you wouldn't want to use it, if you ever needed to find customers with exactly one account there?

  • Color Mode for Photoshop EPS images not shown...

    In Bridge CS2 we can see the File Properties > Color Mode - CMYK/RGB on Photoshop EPS images.
    Bridge CS3 & CS4 the Color Mode is blank.  It doesn't matter if the Photoshop EPS are RGB or CMYK.
    Neither color modes show.  The color mode is present (RGB & CMYK) with TIFF and Photoshop (.psd) images.
    Why is the Color Mode blank (not present) with Photoshop EPS images in Bridge CS3 & CS4?
    Thanks for any information you can provide.
    JHoltz

    In Bridge CS2 we can see the File Properties > Color Mode - CMYK/RGB on Photoshop EPS images.
    Bridge CS3 & CS4 the Color Mode is blank.  It doesn't matter if the Photoshop EPS are RGB or CMYK.
    Neither color modes show.  The color mode is present (RGB & CMYK) with TIFF and Photoshop (.psd) images.
    Why is the Color Mode blank (not present) with Photoshop EPS images in Bridge CS3 & CS4?
    Thanks for any information you can provide.
    JHoltz

  • Trying to test for null input

    I am trying to get some input from a user using:
    String name="";       
    BufferedReader in = new BufferedReader(
        new InputStreamReader(System.in));
    name = in.readLine();Let's say the user inputs nothing other than the enter key, how can I test for this so that I can write output for it?
    In Python, one would use something like:
    if not name:
         <then do something>Thanks,
    Harlin Seritt

    Thanks for the help. When I try it with an empty
    string test, nothing happens. However, the test of
    name.length() works perfectly. Thanks!
    Harlin SerittI'm guessing you tried this, right?
    if (name == "") ...
    That's not the way to compare string values. The == operator only compares object references when comparing 2 objects. It's an extremely common mistake.

Maybe you are looking for

  • My iphone 5 touch screen seems to have a mind of its own. Please help

    My iphone 5 touch screen seems to have a mind of it's own. Whilst I am trying to type a text message it will quite often whilst i'm tapping on letters, typr different letters, or open up the edit messages to select and delete messages. The screen can

  • RGB from VGA for feed into TV

    I did read the posted discussions on this but couldn't find what I need to know. Hopefully I didn't miss anything. I am new to macs and have just bought one for use as a media server (to play divx and audio). Ok its really just to play with because i

  • Difference between Existing QM system and Vendor QM system in QI info recor

    In Quality info record, under inspection control tab, I find 2 options for certificate monitoring, one is Existing QM system and another one is Vendor's QM system, Please advice the difference between them.

  • Scanning for additional file extensions

    Hi We have a requirement to scan and report back PCs which have database files on the local drives, and I am struggling to configure ZCM Inventory to scan for files with the mdb extension. I have checked the product documentation and do not seem to h

  • How to use dbca and netca

    hi everyone , I have just installed the software of oracle on RHEL4U4,but when I click ok .and wanted to configure a new database . (using dbca) ,I met an error ,just as follows [oracle@LinuxOracle install]$ dbca bash: dbca: command not found so I lo