Can anyone solve (or) give me a solution for this problem.....?

Hi Everyone!
Can anyone solve (or) give me a solution for this problem.....?
We have used two folders Source & Finalwork. We have get image from Source folder and put silo path & Moved to Finalwork folder.
Is this possible to check whether both folder images Embedded color profile same or not.
-yajiv

Could you elaborate what you mean by this
We have get image from Source folder and put silo path & Moved to Finalwork folder.
Possibly again with a screenshot to illustrate the task?
// 2012, use it at your own risk;
#target photoshop
var theFolder = Folder.selectDialog ("select source folder");
if (theFolder) {
var theFiles = theFolder.getFiles(/\.(jpg|tif|eps|psd)$/i)
var theOtherFolder = Folder.selectDialog ("select target folder");
if (theOtherFolder) {
var theOtherFiles = theOtherFolder.getFiles(/\.(jpg|tif|eps|psd)$/i)
var missingFiles = new Array;
var unmatchedProfiles = new Array;
// work through files;
for (var m = 0; m < theFiles.length; m++) {
          var check = false;
          var theFile = theFiles[m];
// find name of the same name;
          for (var n = 0; n < theOtherFiles.length; n++) {
                    var theOtherFile = theOtherFiles[n];
// if one is found;
                    if (theFile.name == theOtherFile.name) {
                              check = true;
                              var oneFile = app.open(File(theFile));
                              var otherFile = app.open(File(theOtherFile));
// check profiles;
                              if (oneFile.colorProfileName == otherFile.colorProfileName) {
// collect umages with unmatched profiles;
                              else {unmatchedProfiles.push(theFile)};
// collect missing files;
          if (check == false) {alert ("hahaha");missingFiles.push(theFile)}
// alert of problems;
if (unmatchedProfiles.length > 0) {
alert ("the corresponding files for these do have a different color space:\n"+unmatchedProfiles.join("\n\n"));
if (missingFiles.length > 0) {
alert ("these files miss corresponding ones:\n"+missingFiles.join("\n\n"));
////// get psds, tifs and jpgs from files //////
function getFiles (theFile) {
    if (theFile.name.match(/\.(jpg|tif|psd|pdf|)$/i)) {
        return true

Similar Messages

Maybe you are looking for

  • Net price changed...Urgent

    Hi friends, I m new in mm. We import the raw mat. from many foreign compnies. when we enter the net price in ME23n. The net price in increased by 10 times.in table EKPO. wn it is in euro it is ok but when we use USD its price changes 10 times. i have

  • Cannot delete Service Entry Sheet

    Dear Experts, Can please help me for the error encountered while deleting the Service Entry Sheet?  Error: Total takeoff quantity for (Service Entry Short Text) is getting < 0 . Processing not possible. Message: BOS01182 Thank you,

  • My ipod touch has a box around everything i touch

    At first the touch wasn't working.  Finally the battery died and I was able to charge it and now the slide isnt work right, its very slow. i have to double tap an icon for it to work. a box appears around anything i touch even around the time.

  • How to call web dynpro ABAp application into workflow

    Hello All, How to call webdynpro application into workflow .Is it possible ? Scenario is : A web dynpro application should flow into 3 levels of approvals . Please share your knowledge . Thanks Sonal

  • Binding Quality of Hardcover iPhoto Books

    I'm interested to hear of the experiences of other iPhoto users with the new hardcover iPhoto books. I just received a new hardcover book I made for my wife. The book looks beautiful and the printing is great. However, the binding seems to be a littl