Photoshop uses JavaScript to load open documents into the Match Color command

Hello,
I am a production artist and I make use of the Match Color command quite a lot in my work. I often have 6-10 Photoshop documents open and one of them is designated as my master document. With this document active, I launch the Match Color command. Inside the Match Color dialogue, I load one of the other open documents into the Source drop-down menu under Image Statistics. I click Ok, and save the master document under a new name. I have to repeat this for all other open documents. Needless to say, it gets tedious.
I started to write a script to automate this, but I cannot find the syntax for the Match Color. I have the Adobe Photoshop Cs6 Javascript Scripting Reference but have been unable to locate it in this PDF. I tried looking online, but no luck. Does anyone know what syntax to use as well as associated properties / methods?
Thanks for any assistance.

What we do is we make seamless images from product photos supplied by retailers in the flooring industry (carpet, tiles, etc). The seamless image gets loaded into a virtual room scene powered by Adobe Scene7. Scene7 takes the seamless image and duplicates it horizontally and vertically, in 3D perspective, so the final rendering looks like one continuous product image. Check this link to see an example:  http://sitesetup.creatingyourspace.com/wlhhbw4/designcenter/vrddesign.aspx?room=2854 The thumbnails on the left side are seamless images. click on one and it will load into the virtual room.
When I make seamless I may encounter 20-50 images of the same product, but different colors. Rather than spend 10-15 minutes per seamless, I make one and then let Match Color do the rest. Match Color is a great tool for this application. If destructive editing were an issue, the layer could simply made into a smart object, but we're not concerned about that.
I did try the javaScript listener. Below is the code it generated. I'm new to JS so I don't understand all of the syntax.
// =======================================================
var idmatchColor = stringIDToTypeID( "matchColor" );
    var desc7 = new ActionDescriptor();
    var idLght = charIDToTypeID( "Lght" );
    desc7.putInteger( idLght, 100 );
    var idClrR = charIDToTypeID( "ClrR" );
    desc7.putInteger( idClrR, 100 );
    var idFade = charIDToTypeID( "Fade" );
    desc7.putInteger( idFade, 0 );
    var idfsel = charIDToTypeID( "fsel" );
    desc7.putBoolean( idfsel, true );
    var idSrce = charIDToTypeID( "Srce" );
        var ref5 = new ActionReference();
        var idLyr = charIDToTypeID( "Lyr " );
        var idBckg = charIDToTypeID( "Bckg" );
        ref5.putProperty( idLyr, idBckg );
        var idDcmn = charIDToTypeID( "Dcmn" );
        ref5.putName( idDcmn, "4167_13828.jpg" );
    desc7.putReference( idSrce, ref5 );
executeAction( idmatchColor, desc7, DialogModes.NO );

Similar Messages

  • Ive just learned that i can use loadjava to load jsp pages into the database.

    Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
    Any ideas?

    Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
    execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
    PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
    ORA-29540: class ZebraGetPrinterFromXML does not exist

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • How to use Javascript to load random pages?

    I wonder if anyone knows how to use Javascript to load a list
    of links stored in the text file.
    Every address will take a line, and the Javascript will
    randomly select one of the addresses to load.
    The user will click the button "random" and access the page
    randomly selected by the script.

    Addition note:
    I forgot to say this because my computer froze......(how
    lame)
    I got the code for random accessing the links.
    But now the problem is, is there anyway to parse a text file
    into the array in Javascript?

  • Okay, I loaded the trial of Photoshop, have Creative Cloud loaded, downloaded Photoshop, trying to open Photoshop, but cannot, do I open it from the Creative Cloud App Screen?

    Okay, I loaded the trial of Photoshop, have Creative Cloud loaded, downloaded Photoshop, trying to open Photoshop, but cannot, do I open it from the Creative Cloud App Screen?

    It's not launched from the CC app.
    If you have Windows, look under Program Files\Adobe\Photoshop CC
    If you have a Mac, look in the Application Folder > Photoshop CC

  • Can I use LabVIEW to load data directly into system memory? The serial card I'm using isn't supported by NI nor does VISA recognize it. I'm using a Win32 function to read the data from the card and now I want it to go directly to system memory.

    Can I use LabVIEW to load data directly into system memory from a VI? The serial card I'm using isn't supported by NI nor does VISA recognize it. I'm using a Call Library function to read the data from the card and now I want it to go directly to system memory.
    The data is being received at 1Mbps.
    Thanks

    Two questions:
    One, if it's a serial card, then presumably it gives you more serial ports, like COM3, COM4, etc. If so, VISA would see the COM ports, and not the card directly. The drivers for the card should make it so that you see the extra serial ports from the OS. If you don't see the extra COM ports from VISA, then it sounds like the drivers for the card are not installed properly. Do the extra COM ports show up in Device Manager?
    Two, you said that you're using a Call Library function to get the data and you want to put it into system memory. Errr.... you just read the data and you have it in memory by definition. Are you saying you need a way to parse the data so it shows up on a graph or something?

  • WAD - open Document in the new window

    Hi All,
    in my old web application 3.5 I had the possibility to open the HTML file from MIME repository. All what I had to do was to press the button. Now I have the new web application 7.x and put the same document into the KM. In the next step I would like to implement the button to open the file in KM. How to do this?
    Do I have to open it with javascript (as before) or there is some other possibility to do it? Maybe WAD-command?
    Thanks and Regards
    Erwin

    Hi Erwin,
    I think the best way would be to open in using the Java Script component.  Drag in the Java Script component, then assign the component to the button.
    Thanks,
    Nick.

  • How to push the two pdf opened documents in the array?

    Hi all,
    I need to store the two pdf opened documents in the array value(i.e array(0), array(1)) and then get that array value one by one, and print it through AVAlertNote(). Kindly advise me the possiblities and solution.
    Thanks for looking into this.

    What do you mean you want to put the "pdf open documents" in an array?  You mean the PDDoc structures?  Just use a std::vector<> or the like.
    And what did you want to print?
    If you are trying to debug, why not use the source debugger for your platform?

  • How to convert a word document into the PDF format?

    Please instruct me step by step on how to convert several Word documents into the PDF format?

    If properly installed and updated (depending on the WORD version), you can simply do any of the following:
    1. Open the doc in WORD and select Print, choose the Adobe PDF printer, print.
    2. Open the doc in WORD and go to the Acrobat menu in WORD and select create PDF (this uses PDF Maker).
    3. Open the doc in Acrobat and the conversion should be done based on PDF Maker.

  • I have my Macbook Air hooked up to a Tunderbolt Display, is there any way to either power on or wake from sleep mode using an Apple USB keyboard pluged into the Thunderbolt display?

    I have my Macbook Air hooked up to a Thunderbolt Display, is there any way to power on the Macbook Air using an Apple USB keyboard plugged into the Thunderbolt display? I would like to be able to keep the Macbook Air in the Archbook dock and not have to open it to power it on?
    Thanks for any advise.

    SadisticIron wrote:
    i just baught my first iphone and it is a jalbroken
    Buzz! Thank you for playing!
    Discussing jailbroken devices is forbidden here by the Terms of Service.
    You can not get help here.

  • My wife wrote her resume. Wants to email it as an attachment only. But whenever it is received it comes as an attachment and as an open document in the body of the email. How do we stop the resume from opening in the body of the email?

    My wife wrote her resume. Wants to email it as an attachment only. But whenever it is received it comes as an attachment and as an open document in the body of the email. How do we stop the resume from opening in the body of the email?

    wyman41 wrote:
    She wrote her resume in Word.
    I don't have any problem attaching just a MS Word file in Mail. My process is pretty simple....with a message open I click the attach icon (paperclip) at the top of the message, then navigate to where the file is located and select it. I make sure I have the cursor at the bottom of the new message below my signature line. FWIW I use MS Word 2011.

  • Safari (6.0 on mountain lion) hasn't  been loading/opening some of the sites that I....

    Ok, I may might as well never think of praising any apple product ever again!! SO the past 4 days safari (6.0 on OS X mountain lion 10.8.1) hasn't  been loading/opening some of the sites that I try to go on, for ex.: YouTube, Yahoo ect. However, sites like Facebook, tumblr, twitter, google ect work, so what's the problem?
    extra info, I have a mid 2012 MBP, I upgraded to mt. lion in september, so I don't think mt. lion is the problem, but something REAL wacky is going on! Is the flash or java or do i need to delete cookies(what would happen if i delete the cookies)?  I have no extenstions by the way .
    PLEASE, HELP ME SMART PEOPLE!!!
    Thankyou! ~~~

    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found
    It suggest that I use a different DNS, 
    i know this may sound stupid but what's a DNS??? is it something that has to do with the internet? Also, since it suggest me to use a different DNS, how do I know whats my current DNS is?

  • When i copy a word document into the body of an email, it arrives in a distorted format.  what can i do to insure it will arrive in the body of the email as it appears in my word document?

    how can i ensure that when i copy a word document into the body of an email, it will arrive in the same format as it appears in the word document.  mine arrive with distorted spacing.  thank you!!

    Sounds like the Word file may have right justification. You can turn that off within Word.
    You can also save the file as a pdf using these instructions:
    http://support.apple.com/kb/PH10738
    and send the pdf instead.

  • How do you copy a document into the adobe app on ipad?

    How do you copy documents into the adobe app on ipad?

    Thanks for responding,
    Nope ... If I single tap the displayed PDF nothing happens - If I double tap I get the option to Copy / Select All - there is no "Open In...."
    (I was going to insert an image in this post, but clicking on the camera icon does nothing - oh well)
    I tried sending myself a different PDF - got the same results "Copy or Select All"

  • I am having problems loading sampler patches into the exs24 sampler, when i got into edit menu and load multiple samples all the samples r greyed out and i cannot slect them, any help with this would be much appreciated

    I am having problems loading sampler patches into the exs24 sampler, when i got into edit menu and load multiple samples all the samples r greyed out and i cannot slect them, any help with this would be much appreciated

    It is very difficult to offer troubleshooting suggestions when the "os version" you are using is unknown as each os has their own troubleshooting solutions. 
    How large is your hard drive and how much hard drive space do you have left? 

Maybe you are looking for

  • How to disable CHARGES tab in Find Sevice Requests(CSXSRISR.fmb / CSXSRISV)

    could any one please let me know how to disable CHARGES tab in Find Sevice Requests ( CSXSRISR.fmb, but funtion registered is CSXSRISV). Actually when i access the "Create Service Requests" menu option, the form comes up with a the three TABS (Charge

  • Using operating system command on file receiver comm.channel

    Hi, I pepared a XI 3.0 message generating .txt file. I must append content of this file to the and of the file with same name but different extension(.bak extension). I know it is achieved with copy name.bak+name.txt it appends txt file to the .bak f

  • Why are images distorted when burning a slide show to iDVD from iPhoto?

    I have created a slide show in iPhoto and wanted to burn a DVD.  Some of the images are scans from old family pictures. The images present in the proper aspect ratio within iPhoto, but when I burn the CD in iDVD, some of the images are either compres

  • Tax Code from ECC Contract or Info Record not picking in SRM7.0 SC

    Hi Experts, We are configuring SRM7.0 with ECC6 (Ehp4) having Classic Scenario. In SRM Tax setting, we set as u201CTax calculation in backend systemu201D, we created and mapped Tax code with ECC and it is working fine. In our case, Tax Rate varies as

  • Using AIR for desktop

    is drag'n'drop from system and back possible? i would like to build an air desktop drop zone area. it would be cool when i can use flex for building desktop gadgets. last time i checked it was not possible to drop content to air at all. hence a cs4 f