Plugin Automation: how to select a spot channel when 2 channels have the same name?

I have a CMYK document open in photoshop. In the "LAYERS" Panel, I just added 2 tones with the same name "color 1" Sport.

I click on the spot channel to select, the "Listener" plugin will be released a few c ++ code like below:


SPErr PlayeventSelect(/*your parameters go here*/void)
{
Result PIActionDescriptor = NULL;
DescriptorTypeID runtimeKeyID;
DescriptorTypeID runtimeTypeID;
DescriptorTypeID runtimeObjID;
DescriptorTypeID runtimeEnumID;
DescriptorTypeID runtimeClassID;
DescriptorTypeID runtimePropID;
DescriptorTypeID runtimeUnitID;
SPErr error = kSPNoError;
Move it to the top of the routine!
PIActionDescriptor desc0000000000003980 = NULL;

error = sPSActionDescriptor-> Make (& desc0000000000003980);
If (error) goto returnError;

Move it to the top of the routine!
PIActionReference ref0000000000001A48 = NULL;
error = sPSActionReference-> Make (& ref0000000000001A48);
If (error) goto returnError;

error = sPSActionReference-> PutName (ref0000000000001A48, classChannel, "1 Spot color");
If (error) goto returnError;

error = sPSActionDescriptor-> PutReference (desc0000000000003980, keyNull, ref0000000000001A48);
If (error) goto returnError;

error = sPSActionControl-> Play (& result, eventSelect, desc0000000000003980, plugInDialogSilent);
If (error) goto returnError;

returnError:
If (result! = NULL) sPSActionDescriptor-> Free (result);
If (desc0000000000003980! = NULL) sPSActionDescriptor-> Free (desc0000000000003980).
If (ref0000000000001A48! = NULL) sPSActionReference-> Free (ref0000000000001A48).
error return;
}

-------------------------------------------

You can see "PutName" adds the name of the channel 'Spot color 1' to make reference to and I think it will not work properly if I add such a code for my project as the PS can not differentiate the 2 channels than by their name. Can someone tell me if there is another method of selecting channel spot? Thanks in advance.

Hello

Here's something tht docs, you may find useful.

Index of Tryusing instead of name:

SPAPI OSErr (*) ( PutIndex ) (RefPIActionReference , DescriptorClassIDdesiredClass, uint32 value)
Puts an index into a reference ( formIndex ) as well as the class desired for reference.

Unfortunately I do not have C++ here to try I used just definition of documentation.

Hope this helps.

Kind regards

Momir Zecevic

ARS media

www.Arsmedia.TV

Tags: Photoshop

Similar Questions

  • How to read 4 similar channels at the same time with the MCC

    Hello

    with the mcc libraries and a card PCi-6034 classic (by calculation of the measure), I want to read 4 analog channels at the same time. I have a "scope" with 4 channels.  How to read 4 channels at the same time with the mcc?

    MF

    Hello MF.

    Thank you for using OR support.  I guess you try to program in LabVIEW.  Where exactly did you get the MCC library of?

  • How to select pages (all text in a document) at the same time?

    I read that we must, first of all, double-click to select a page, then 'select all', but he simply selects the selected page. If you want to select the entire document to change the size of the police, they choose page-by-page? !! ?

    Thanks in advance.

    There's no way I know.

    This would be better by going to the original source document and edit this file to change all the fonts on all pages.

  • How to display all the data to a database with the same name?

    I am familiar with the creation of basic website, but I want to learn how to create more dynamic Web sites.

    I create a Web site where a user can register on the site and counts there. Once into account here, there will be different options they can do.

    The new application form is in the section account it is configured for a user to submit a multiple application and save it in the database, that works, but the problem I have is during the examination of the application, it does show that one of them, not all.

    How can view the request of a user, sign in?datab.PNG

    revreq.PNG

    I can get to the screen, but not all.

    Is it possible to do this or any suggestions on how to do?

    Here's the code for the ReviewRequest:

    <? PHP require Connections/Connections.php"?" >

    <? PHP

    session_start();

    {if (isset($_SESSION["fname"]))}

    }

    else {}

    Header('Location:NewRequest.php');

    }

    ? >

    <? PHP

    $User = $_SESSION ['Pnom"];

    $result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

    $row = $result-> fetch_array (MYSQLI_BOTH);

    $_SESSION ["FirstName"] = $row ["Fname"];

    $_SESSION ['location'] = $row ["Location"];

    $_SESSION ['description'] = $row ['Description'];

    ? >

    <! doctype html >

    < html >

    < head >

    < link href = "CSS/Master.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "CSS/Menu.css" rel = "stylesheet" type = "text/css" / > "

    < meta charset = 'utf-8 '.

    ReviewRequest < title > < / title >

    < / head >

    < body >

    < div class = "Container" >

    < div class = "Header" > < / div >

    < div class = "Menu" >

    < div id = 'Menu' >

    < nav >

    < ul class = "cssmenu" >

    < li > < a href = "Account.php" > account < /a > < /li > ""

    < li > < a href = "UpdateAccount.php" > update account < /a > < /li > ""

    < li > < a href = "NewRequest.php" > new request < /a > < /li > ""

    < li > < a href = "ReviewRequest.php" > Review Request < /a > < /li > ""

    < li > < a href = "LogOut.php" > sign out < /a > < /li > ""

    < /ul >

    < / nav >

    < / div >

    < / div >

    < div class = "LeftBody" > < / div >

    < div class = "RightBody" >

    < name of the form = "form1" method = "post" action = "" >

    < div class = "FormElement" >

    < label for = "FirstName" > < / label >

    < input name = "FirstName" type = 'text' required class = "TField" id = "First name" value = "<?" PHP echo $_SESSION ['FirstName'];? ' > ' >

    < / div >

    < div class = "FormElement" >

    < label for = 'Place' > < / label >

    < input name = "Location" type = 'text' required class = "TField" id = 'Location' value = "<?" PHP echo $_SESSION ['Location'];? ' > ' >

    < / div >

    < div class = "FormElement" >

    < label for = "Description" > < / label >

    < input name = "Description" required class = "TField" id = "Description" value = "<?" PHP echo $_SESSION ['Description'];? ' > ' >

    < / div >

    < / make >

    < / div >

    < div class = "Footer" > < / div >

    < / div >

    < / body >

    < / html >

    You would browse the information stored in the $result variable.

    $result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

    As below:

    fetch_assoc()) {? >}

    (I don't see a reason to assign data to a variable of $_SESSION?)

    You also probably would be well advised to select information based on a uniquie rather than a name id - if two people have the same name youre UNLESS you want to make sure that two identical Fname can be stored in your tabe stuffed.

    $result = $con-> query ("SELECT ALL * from newrequest where userID = '$userID'");

    userID |     Fname |     Location |                      Description

    8 the end of the road muddy and foggy

    11 this something, no idea

    8               the              rstreet                           rah

    8 is not a clue

    14 Hello Goodbye

  • How to select a specific channel in another file?

    Hello

    I have several tdv-files (~ 100) I want to analyze for a specific channel. All files have the same structure with the same channels. With tiara, I can load all the files at once to see the files in my dataportal.

    What I want to do is to select a channel x for each folder and view data in a graph or using. It works if I select each channel by hand, but it's a lot of work if I have about 100 cases. Is there an easy way to select a specific channel for all my files at once?

    Thanks in advance

    Hello

    I don't know a file with the extension tdv format. There is also no use on the site of National Instruments, so I think that it's a typo.

    If you are able to open the files, you are also be able to use the tiara serche.

    Take a look at this screenshot:

    I search for all files named TR_M17_QT data *, the name of the Group * superior and the name Temp_B channel. If you display only the channels, you can select all strings in the list of results a trail of the channels in the data portal.

    Best regards, Stephan

  • I have a DAQ Assistant configured to read several channels at the same time. When I have a graphical indicator of wire to the output, I see all my signals mixed together. How I divided them into separate signals?

    I have a DAQ Assistant configured to read 2 channels at the same time. When I have a graphical indicator of wire to the output, I see 2 signals mixed together. How I divided them into separate signals?

    When I wire any type of indicator, it is show that a release of a single channel.

    I want 2 indicators showing 2 different signals as expected from 2 channels configured. How to do this?

    I tried to use split signal but it end by showing that 1 out of 1 signal two indicators.

    Thanks in advance.

    Yes you are right. I tried, but I don't have the result.

    I just find the path. When we launch the split signal, we should expand it (split signal icon) by top, not the bottom. It took me a while to understand this.

    Thank you

  • How to add the same name of datagrid records, while I'm by selecting one of the check and click Add end to end

    Hi friends,

    I do flex mxml 4 web application with as3, I am struck upward in the next concept, shar your suggession thereon.

    I use datagrid with 3 columns NUMBER, NAME, AMOUNT. an and a box Add button and a delete button.

    I have two records in the same name in the grid, when I click on a record in the grid and click ADD means of button this year, both AMOUNT WILL ADD records that record with the same name and give this value in a text box.

    How to do this?

    useful suggesssion or sample modal

    Thanks in advance,

    B.Venkatesan.

    Hello

    var totalsum:int = 0;

    var index: int = db.selectedindex;

    var selname:string = bd.dataprovide.getItemAt (index) .name;

    var totallen: int = (db.dataprovider) .length;

    for (var i: int = 0; i<>

    {

    var checkduplicate:string is bd.dataprovide.getItemAt (i) .name;.

    if(checkduplicate==selname)

    {

    totalSum += bd.dataprovide.getItemAt (i). AMOUNT;

    }

    }

    textfield_id. Text = totalSum

    ---------------------------------------------------------------------- ----------------------------

    Gallot Hiroji | [email protected] | www.isacglobal.com

    ---------------------------------------------------------------------- ----------------------------

  • How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    I find easier to use this copy separate Automator Service (download Dropbox).

    To install in your numbers > Services, double-click menu just the package downloaded .workflow and if necessary give permissions in system preferences > security & privacy.

    To use, just:

    1. Select the cells in the column with duplicate names.
    2. Choose separate copy in numbers > Services menu.
    3. Click once in the upper cell where you want the deduplicated values appear.
    4. Command-v to paste.

    SG

  • How can I create 2 albums in the same name and the same artist

    The guy is anyway to make the 2 albums in the same name for the same artist? If there is no way so please someone tell me how can I suggest updating to iTunes

    Faisal,

    If they have the same artist and eponymous album, iTunes will think they are from the same album.  The best way would be to change the title for the second version, for example 'Loveless' and 'Loveless 2.'  Or you could put parts in separate lists.

    If you don't want to make a suggestion to Apple, here's the link:

    http://www.Apple.com/feedback/itunesapp.html

    "In the dropdown for" Type of comment ", select"Enhancement request.""

  • All channels to HAVE it have the same value - NI PCI-6221 and NI PCI-6229

    Hello

    I use the aiex1.cpp example for a multi-channel read with the devices mseries 6221 and 6229.

    This example works for a lane, but other chains have the same value (difference of +-0.001 Volt).

    For example: I put 5 Volt on the first string, and then the other channel are 5 Volt too.

    What should I consider in the configuration?

    Heiko Hello!

    your description looks like the effect you are having 'ghosts '.

    For more information about ghost images and how to get rid of, check out these links:

    http://digital.NI.com/public.nsf/allkb/73CB0FB296814E2286256FFD00028DDF?OpenDocument

    and

    http://digital.NI.com/public.nsf/allkb/C6C7DE575301A379862572DD00480A01?OpenDocument

    Best regards

    Moritz M.

  • How to set a user account to have the same settings as the administrator account

    How to configure a user account to have the same settings as the administrator account. using windows xp pro with service pack 3

    Set the "parameters of same.

    If you want that the user has administrator privileges, then all you need to do is to add the user to the group "Administrators".  To do this, right-click on 'My computer', select 'Manage' and open the "local users and groups" section.  Click on 'Groups', double click on "Administrators" and add the user to the administrator group.

    If you set 'settings' and things like wallpaper and other preferences, there isn't a way to do that easily other than to simply set these parameters.

    Hope this helps,
    JW

  • Windows 7-How to disable the Preview on my desktop icon, I have many files on my desktop, it's easier when all of the PDF files have the same icon instead of a preview icon.

    How can I disable the Preview on my desktop icon, I have many files on my desktop, it's easier when all of the PDF files have the same icon instead of a preview icon. so, I immediately see who is PDF and DWG. at the moment they all look different because the icon shows a preview of the contents of the file.

    Hi Khody,

     

    To change your windows 7 application icon you can use following the procedure-
    a. R
    ight click on the desktop icon and then click Properties.
    b. now
    Select the shortcut tab and see button below to change the icon. Click the button change icon now all the icons.
    c. you can
    choose a of the icons that you want for the shortcut.

     

    I hope this helps.

  • How to identify columns that have the same data in a SQL query or function?

    Deal all,

    How to identify columns that have the same data in a SQL query or function? I have the sample data as below

    DEPT_IDEMP_IDCome on
    !CITYSTATECOUNTRY111 June 1983DELHIHUMAN RESOURCESIndia1218 January 1987DELHIHUMAN RESOURCESIndia1328 November 1985DELHIHUMAN RESOURCESIndia144 June 1985DELHIHUMAN RESOURCESIndia255 June 1983MUMBAIHDIndia266 June 1983MUMBAIHDIndia277 June 1983MUMBAIHDIndia288 Jun. 1983MUMBAIHDIndia399. June 1983GURGAONDLIndia31010 June 1983GURGAONDLIndia

    Now, I want to Indify columns that have the same data for the same Department ID.

    Is it possible in sql unique or do I have to write the function for this? Pls Help how to write?

    Thanks in advance.

    You can try this?

    WITH T1)

    DEPT_ID, EMP_ID, DATE OF BIRTH, CITY, STATE, COUNTRY

    ), ()

    SELECT 1, 1, TO_DATE('1.) June 1983', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 1, 2, TO_DATE('18.) January 1987', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 1, 3, TO_DATE('28.) November 1985', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 1, 4, TO_DATE('4.) June 1985', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.5, TO_DATE('5.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.6, TO_DATE('6.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.7, TO_DATE('7.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.8, TO_DATE('8.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 3, 9, TO_DATE('9.) June 1983', 'JJ. LUN. (YYYY'), 'GURGAON', 'DL', 'INDIA' OF THE DUAL UNION ALL

    SELECT 3.10, TO_DATE('10.) June 1983', 'JJ. LUN. (YYYY'), 'GURGAON', 'DL', 'INDIA' OF THE DOUBLE)

    SELECT DEPT_ID,

    RTRIM (XMLAGG (XMLELEMENT(A,VALS||',')). Extract ('//Text ()'), ',') COLUMNS_WITH_DUPLICATE

    DE)

    SELECT * FROM)

    SELECT DEPT_ID,

    EMP_ID,

    Date of birth

    CITY,

    STATE,

    COUNTRY

    DE)

    SELECT DEPT_ID,

    EMP_ID,

    Date of birth

    CITY,

    STATE,

    COUNTRIES,

    COUNT (*) OVER(PARTITION BY DEPT_ID ORDER BY EMP_ID DESC,DOB DESC,CITY DESC,STATE DESC, COUNTRY DESC) RN

    DE)

    SELECT DEPT_ID,

    CASE WHEN(CEID>1) AND THEN 'YES' ELSE 'NO' END AS EMP_ID.

    CASE WHEN(CDOB>1) THEN 'YES' ELSE 'NO' END AS DATE OF BIRTH,

    CASE WHEN(CCITY>1) AND THEN 'YES' ELSE 'NO' END AS CITY.

    CASE WHEN(CSTATE>1) AND THEN 'YES' ELSE 'NO' END AS STATE.

    CASE WHEN(CCOUNTRY>1) THEN 'YES' ELSE 'NO' END AS A COUNTRY

    DE)

    SELECT DISTINCT

    DEPT_ID,

    CEID,

    CDOB,

    CITY,

    CSTATE,

    CCOUNTRY

    DE)

    SELECT DEPT_ID,

    COUNT (*) TO THE CEID (DEPT_ID PARTITION, EMP_ID),.

    COUNT (*) ON CDOB (DEPT_ID SCORE, DATE OF BIRTH),

    COUNT (*) ON THE CITY (DEPT_ID PARTITION, CITY),

    COUNT (*) ON CSTATE (DEPT_ID PARTITION, STATE).

    COUNT (*) ON CCOUNTRY (DEPT_ID, COUNTRY PARTITION)

    FROM T1)))

    WHERE RN = 1)

    UNPIVOT (CLO FOR (VALS) IN (EMP_ID, DATE OF BIRTH, CITY, STATE, COUNTRY)))

    WHERE COLS = "YES".

    DEPT_ID GROUP;

    OUTPUT:

    DEPT_ID COLUMNS_WITH_DUPLICATE
    --------- ------------------------

    1 CITY, COUNTRY, STATE
    2 CITY, COUNTRY, STATE
    3 CITY, COUNTRY, STATE

    Post edited by: Parth272025

  • [JS CS3] First plan a selection of documents when others with the same name?

    I have a few scripts that are used to perform various operations on the current selection in InDesign. Under normal circumstances these work very well, but I can't seem to reliable get the document/selection of foreground when there is another document opened with the same name. Most of the references to the document and any reference to the selection, I've tried so far will simply lead to this document which was recently opened (and has the same name).

    app.activeDocument.fullName always return the path to the most recently opened document of the same name, but app.documents [0] .fullName returns the correct path. Try to get the selection well will always return the selection of the most recently opened document of the same name, regardless of the question of if I try app.selection, app.activeDocument.selection or app.documents [0] how. I also tried with getElements() [0] annexed to the document reference, but it makes no difference.

    My primary environment is still CS3 and the problem seems to be that it only references the documents by name. Short tests with CS5 indicate that this has been resolved by Adobe, probably because it now makes reference to documents using a default id. Haven't tried CS4 but its document object not having a property id guess it will behave the same as CS3. Is there a way to get around this, or is the best I can do to detect the problem (a simple app.activeDocument! = app.documents [0] comparison seems to work reliably) and refuse to run if encountered?

    The real problem is that the collections in the documents with the same name think to bad.

    The APID solution was trying to solve the problem, but because it was not the document reference that was broken, the patch did not help...

    Substances

  • How I find myself with two passwords to iCloud for the same account?

    How I find myself with two passwords to iCloud for the same account?

    For security reasons, I only use iCloud for Contacts and "find my iPhone".

    Several months ago Apple forced me to change my password to iCloud.  So I did this.   In the last months, I used successfully the new password to 10 or 12 times when asked without problem.

    However, I received a notification of a software update for my Apple Watch. I did the update without problem. However, after completing the update my iPhone asked me to connect to my iCloud account. When I did this, she rejected my password. I made 4 attempts typing very slowly and with care for you sure I did it right.

    Then, operating under a hunch, I decided to enter my old password to iCloud. It worked?  I'm confused about this, any ideas would be appreciated.

    I had a similar problem last year. I had to call Apple. Contact is a bottom of this page.

Maybe you are looking for

  • No Audio - HP Envy Phoenix 810-145QE

    Not audio on the back or the upper connector, using the "Troubleshooting" of the message, it is that no device is connected. My headphone and line connection of the speakers work fine on my old HP computer. HDMI audio output does not work, but I real

  • get control of the ring label.value

    Hello I want to read the text of the index selected in control of the ring. I have 5 values(ONE,TWO,THREE,FOUR,FIVE) different in my control of the ring, if I select the 3rd value 3 must be stored in my char variable. If I select the value 2 is retur

  • Best way to troubleshoot slow VI.

    I have a VI that displays data from an API.  I use an OPC server, updated every 50ms.  My VI updates indicators on the screen every 11-15 seconds.  I the event structures, but they are all 50ms delay, and there is no function waiting in my loop (I ha

  • BlackBerry smartphones can not open the eyebrows of internet

    I ca not open internet or the accsess my Id eyebrows, always have an massage as my eyebrows is bloked can not set up my new email or ID

  • Cannot remove a keyboard Bluetooth in Win8.1 x 64

    Hello My laptop is MSI GS60, and I use a bluetooth Logitech K810 with her keyboard. They work very well for a long time. But 3 days ago, k810 has been disconnected. And then I can never reconnect it again. As part of the subway, I try to remove it, b