script to rename files with similar names?

Hi, people.

I have my RAW files in a single folder and my derivative images (e.g., PSD, TIFF, JPEG) in another.  The derived files share only the last four digits of the names of RAW files (for example, the RAW file is named 100826 - 14278.CR2 but the JPEG version is only named 4278.JPG).  In addition, the derived files have no metadata.

Is it possible to use a script to match all derivatives for the last four digits-based RAW files, then change their file names to match the names of RAW.  And, if possible, can bridge waterfall then metadata less camera EXIF data in the RAW files for derived files?

Thank you!

-Greg

P.S. My knowledge of scripting languages stops with cursive handwriting, so please, be gentle.

Copy and paste the script in Extendscript Toolkit
This utility is located in the proper folder: -.
PC: C:\Program Files\Adobe\Adobe utility
MAC: /Applications/Utilities/Adobe utilities

Start Bridge - Edit - Preferences - Startup Scripts - Click "reveal my Startup Scripts.
This will open the folder where the script should be saved.
(It's just a text file with the extension .jsx)
Close and restart Bridge and accept the new script.

You will now see a new menu item 'Metadata' select 'Rename and add metadata' in the menu.
It will now give you the option to select the folder of raw files and the folder of derived files, it then do rename it and add metadata (I hope).

It may be preferable to set up a couple of test files and see if it works well.

Tags: Bridge

Similar Questions

  • Script to rename work with layer names plans

    I want to create a script to rename lots a number of work plans.

    -J' have 100 named layer.

    -J' have 100 work plans.

    -I would like to rename work plans to match the layer names.

    -Layers are organized in the same descent orderas work plans (ignoring the names real artboard *).

    -The plan of work in the foreground (1 in the list) would be renamed "Journal", the second plan of work would be renamed "typewriter", the third work plan would be renamed "books", etc..

    * in the example below, the artboard named 'Graphic Board 7' is actually the 6th work plan in the list.

    LayerNames-To-Artboards.png

    Any help would be wonderful.

    Hi sensibleworld, welcome to the forum.

    For your case, it should be fairly simple. The following excerpt from script bit renames work plans to match the corresponding layer names that you described in your first post above. It only works if the number of layers and work plans correspond to such indicated and talked about in your above description of requirements.

    if (app.documents.length == 0) {
        alert("No Open / Active Document Found");
    } else {
        var doc = app.activeDocument;
        if (doc.artboards.length == doc.layers.length && doc.layers.length == doc.artboards.length) {
            for (var i = 0, l = doc.artboards.length; i < l; i++) {
                var ab = doc.artboards[i];
                ab.name = doc.layers[i].name;
            }
            alert("Finished:\nRenaming of Artboards to match Layer names is complete");
        } else {
            alert("Opps: This wont work!\n The number of Layers and Artboards do not match");
        }
    }
    

    I hope that this is useful for your efforts and your requirements. Welcome back to the forum.

  • How to use windows search to search the contents of a bunch of files with random names / extensions?

    How to use windows search to search the contents of a bunch of files with random names / extensions? Plain txt files say 1,000 with random name of file extensions?

    You can always search within those, but you need to add extensions to the file system so that it knows to look inside these files.  You said that you have a lot, so it's perhaps tedious.  Here's How to search within several types of files.

    One thing you could try is rather to make a copy of this file, rename all the files to the same extension (even an extension false for example something.bill) and perform your search on this band.  Just an idea.

  • Activity FTP - mget several files with dynamic names

    Hi all

    Hope everything goes well.

    I was wondering if there was a way to configure the FTP activity to transfer several files with dynamic names to location of the source on a daily basis.

    For example, my source files are set with date values (source_filename_ < MMDDYYYY > _ < hh > .txt):
    source_filename_12252009_00.txt
    source_filename_12252009_06.txt
    source_filename_12252009_12.txt
    source_filename_12252009_18.txt

    I would like my process flow to do would be to download just the 4 day files based on a script ftp dynamic as follows:

    Open ${Remote.Host}
    ${Remote.User}
    ${Remote.Password}
    CD ${Remote.RootPath}
    invites to the wide
    mget?
    quit smoking

    In the script of DOS commands, you would have with a wildcard as mget command:
    mget source_filename_%DATE:~0,2%%DATE:~2,2%%DATE:~4,4%*.txt

    How should be done on the implementation of this in OWB? It requires a user-defined substitution varilable any?

    FYI, I use version 10 gr 2.


    See you soon.

    Hello

    If you are able to achieve your goal of a script of DOS commands, then you can call this script for a user defined, OWB process flow activity.
    I hope this helps.

    Thank you
    Fati

  • Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Try resetting the PS preferences - Preferences in Photoshop

    ~ Rohit

  • I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign docum

    I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign document?

    Read about to merge data in the help files.

  • Number of folders in my files with strange names

    I have installed 11 items, imported images, now have thousands of files with strange names.

    Still for delete.

    I tried to uninstall and reinstall items, but the foders were still there.

    How bulk can remove these files, or manually uninstall so that I can remove all items?

    Screen Shot 2013-04-05 at 5.45.41 PM.png

    I seem to have solved the problem.

    I deleted "My catalog", after making a new catalog (required).

    On importing for the first time, I selected 'images' of file import.

    This time, instead, I chose all files from inside 'images' & the right file names are given, and none of the thousand of false records appear.

    Also may be a factor? I have my mac os x "photos" folder on a 2nd drive internal alias the original position of the OS disk.

    Post edited by: ianwbarnett

  • Two patterns with similar name

    I am facing a strange problem, when you dump import two schemas with the very similar name were created. Apparently, the names are name but actually not. I want to drop the username by user_id = 122. How I can do this.
    SQL> select username,user_id,account_status from dba_users where username='SECURITY';
    
    USERNAME                 USER_ID ACCOUNT_STATUS
    ------------------------------ ---------- --------------------------------
    SECURITY                     129 OPEN
    SQL>  select username,user_id,account_status from dba_users where username like 'SECURITY%';
    
    USERNAME                 USER_ID ACCOUNT_STATUS
    ------------------------------ ---------- --------------------------------
    SECURITY                     129 OPEN
    SECURITY                     122 OPEN

    Apparently, you need find the extra white space.
    The trick to show them that I always use is to concatenate a character printable or unused to column_name, so I can see the white space.
    If the name is actually 'SECURITY', you must use

    Drop user 'SECURITY ';

    ---------------
    Sybrand Bakker
    Senior Oracle DBA

  • create file with the name of file with today's date

    Hello
    is it possible to create a file with the current date? In fact, I want to take backup of my oracle schema every day with the name of the file including the date...

    You can use the syntax below,

    exp = orcl_ file ' date of +%Y%m%d%%H%M%'.dmp

    Thank you

  • Script Export single Pages with the name and file custom paragraph Style?

    I have a document called "mydocument".

    I have a several pages in the document.

    Each page has a title of"style with a stylesheet called point title.

    I need to export each page as individual .jpg with a custom file name

    myDocument-01 - title.jpg

    01 is the page number

    Seemed like a simple request... but it turns out that it's a little challenging.

    This scipt below, that I found on another thread a little work

    It gives me a

    Title1.jpg

    But I can't figure out how...

    1. Add the name of "mydocument".

    2. have a 0 on the 1-digit numbers

    Can someone please guide me, I would be eternally grateful.

    if (app.documents.length != 0) {
         var myDoc = app.activeDocument;
        MakeJPEGfile();
    }
    else{  
         alert("Please open a document and try again.");  
    } 
    
    
    function MakeJPEGfile() { 
    
    
    
    
    
    
         for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++) {
    
              if (myDoc.pages.item(myCounter).appliedSection.name != "") {
                   myDoc.pages.item(myCounter).appliedSection.name = "";
              }
                
                var myPageName = myDoc.pages.item(myCounter).name;
              var myJpegPrefix = "";
              var isStyleExist = true;
    
              //Checking the existing of the paragraph style (filename)
              try {
                  myDoc.paragraphStyles.item("title");
              }
              catch (myError) {
                  isStyleExist = false;
              }
    
              if (isStyleExist)
    
    
              myJpegPrefix = getParagraphContent(myDoc.paragraphStyles.item("title"), myDoc.pages.item(myCounter)) + myPageName;
              app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high; // low medium high maximum
              app.jpegExportPreferences.exportResolution = 72;
              app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
              app.jpegExportPreferences.pageString = myPageName;
    
    
              var myFilePath = "~/-client/JOYS - Just Organize Your Stuff/-Art/-art-book-kindle/" + myJpegPrefix + ".jpg";
              var myFile = new File(myFilePath);
              myDoc.exportFile(ExportFormat.jpg, myFile, false);
         }
    }
    
    
    // The new function, but needs to add checking the file name rules.
    
    
    function getParagraphContent (paragraphStyle, currentPage)
    {
        var paragraphContent = null;
        for (var c = 0; c < currentPage.textFrames.length; c++)
        {
            for (var i = 0; i < currentPage.textFrames.item(c).paragraphs.length; i++)
            {
                if (currentPage.textFrames.item(c).paragraphs.item(i).appliedParagraphStyle == paragraphStyle)
                {
                    paragraphContent = currentPage.textFrames.item(c).paragraphs.item(i).contents;
       // Remove spaces and returns at the end:
                    paragraphContent = paragraphContent.replace(/\s+$/, '');
       // Replace remaining spaces with hyphen:
                    paragraphContent = paragraphContent.replace(/\s+/g, '-');
       // Make lowercase:
                    paragraphContent = paragraphContent.toLowerCase();
                    return paragraphContent;
                }
            }
        }
        return paragraphContent;
    }
    
    

    Thank you Mi!

    One more step.

    I just need to remove the extension .indd.

    My file name is now

    myDocument.indd - 01 - title.jpg

    If (app.documents.length! = 0) {}

    myDoc var = app.activeDocument;

    MakeJPEGfile();

    }

    else {}

    Alert ("Please open a document and try again.");

    }

    function MakeJPEGfile() {}

    for (var myCounter = 0; myCounter< mydoc.pages.length;="" mycounter++)="">

    If (. appliedSection.name myDoc.pages.item (myCounter)! = "") {}

    myDoc.pages.item (myCounter).appliedSection.name = "";

    }

    var myPageName = myDoc.pages.item (myCounter) .name;

    var myJpegPrefix = "";

    var isStyleExist = true;

    Audit of the existing paragraph style (filename)

    try {}

    myDoc.paragraphStyles.item ("title");

    }

    {} catch (MonErreur)

    isStyleExist = false;

    }

    If (isStyleExist)

    myJpegPrefix = getParagraphContent (myDoc.paragraphStyles.item ("title"), myDoc.pages.item (myCounter)) + '-0 "+ myPageName;

    app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high; low medium high maximum

    app.jpegExportPreferences.exportResolution = 72;

    app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;

    app.jpegExportPreferences.pageString = myPageName;

    var CheminMonFichier = "" ~/-client/JOYS - just organize your Stuff Art / /-art-book-kindle / "+" / "+ myDoc.name +"-"+ myJpegPrefix +".jpg";

    var myFile = new File (myFilePath);

    myDoc.exportFile (ExportFormat.jpg, myFile, false);

    }

    }

    The new feature, but it will add filename rules checking.

    function getParagraphContent (paragraphStyle, currentPage)

    {

    var paragraphContent = null;

    for (var c = 0; c)< currentpage.textframes.length;="">

    {

    for (var i = 0; i)< currentpage.textframes.item(c).paragraphs.length;="">

    {

    If (currentPage.textFrames.item (c).paragraphs.item (i) .appliedParagraphStyle is paragraphStyle)

    {

    paragraphContent = currentPage.textFrames.item (c).paragraphs.item (i) .silence;

    Remove the spaces and returns at the end:

    paragraphContent = paragraphContent.replace (/ \s+$ /, ");

    Replace the remaining spaces with hyphen:

    paragraphContent = paragraphContent.replace (/ \s + / g, '-');

    Make lowercase:

    paragraphContent = paragraphContent.toLowerCase ();

    Return paragraphContent;

    }

    }

    }

    Return paragraphContent;

    }

  • Problem with rename file with applescript

    It seems very stupid to ask, but I am VERY new to the apple scripts and trying to learn it.

    I get an error with the following script. I'm setting up of automator to take a file placed in a folder with folder actions implemented. But I get an "unknown error".

    It should take the file and rename it to the content of the text in the Clipboard and preserve the extension.

    tell application "Finder" to activate
    tell application "Finder"
       set theExt to name extension of theFile
       set the clipboard to «class ktxt» of ((the clipboard as text) as record) # remove styles from the clipboard
       set theNewname to the clipboard
       set name of theFile to theNewname
       set name extension of theFile to theExt
    end tell
    

    You don't need to activate the Finder unless you want to come to the fore and, as you are already down a file in a folder, I think it's already there!

    I don't really understand your workflow to understand what you put into the Clipboard, so it would need to be a tweak if this script does not work for you.  While you can set the name explicitly extension, I just built the new name, including the extension in the newName variable.

    NOTE: I put a test in preventing the name change goes forward.  If you don't want that, remove the otherwise.  As always, make sure that you have a backup!

    say application 'Finder '.

    the value theExtension for name extension of dittos

    oldName put to the name of dittos

    set newName to (Clipboard) & "." & theExtension

    display the dialog box 'Are you sure you want to rename' oldName & "to" & newName buttons {"Yes", "No"}--delete this line and two others below if you do not want to check

    If the button returned of the result is 'Yes' then - delete

    the value name of dittos to newName

    end If - remove

    end say

  • batch rename files with wildcards

    How can I batch rename 100 files so that I change only the first four characters of a name of fifty character where the last 30 characters are different for each file name?  To BACK the rename command would work with wildcards, but my files names are too long for BACK.  I tried the select all, press F2 and change the first, but all the characters changed instead of just the characters that I have edited.

    Brad

    Windows XP, Vista, 7

    Brad

    It is a small flexible program. Download the 32-bit version or 64-bit Bulk Rename, here http://www.bulkrenameutility.co.uk/Main_Intro.php

  • Creation of stand-alone executable file with similar library files without errors of link

    I have an Executive Test that is run on two different test systems. Each stand has another card ARINC429. The old card use 429dll32.lib, while the most recent map use pci429.lib. Test Exec code only loads a single library file (using LoadExternalModule) depending on what the test bench has the card, but since there are many similar functions in both, ICB does not test Exec be built as a stand-alone executable.

    In CVI 5.0.1 I opens the "Create stand-alone executable file" and select "add files to the executable. I check the 429dll32.lib and the pci429.lib to include in the creation of executable, and then click 'OK '. When I click 'OK' to create the executable I have several link errors, one for each function both .lib files have in common.

    Is it possible for each of these .lib files to be included in the compilation without having to create two separate executables?

    eatmontr:

    If you use LoadExternalModule(), you need not include the .lib files in the Executive test project.  Refer to the CVI for LoadExternalModule help.

    Here's the info on the help:

    LoadExternalModule loads an external object module file. You need not list the file in your project or loaded as a module of an instrument.

    The file may be an object (.obj) file, a library file (.lib) or a library (.lib) import DLL.

    Here are a few articles to OR who can help.

    To access the plug-ins with CVI (with sample program) http://zone.ni.com/devzone/cda/epd/p/id/133

    How do I call dll if I have two functions with the same named in two different dll? http://digital.NI.com/public.nsf/allkb/5299ED8D43F3B5FE852563BF0056EBA6

  • What are the files with long names, the letters and numbers?

    I have several labels of large folders with names very long "ae61cbac70034e54059be539829a7e", that means these and I can delete them?

    Hello, TerriML,

    Performs a search of malicious programs.  Boot safe mode with networking

    Download the following tool and an analysis of the system.  I suggest also disable the system restore because the malware is known to hide in the restore points.

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&id=16

    Turn off System Restore in Windows XP

    http://support.Microsoft.com/kb/310405

    Files such that you listed are known to the Windows operating system files - I advise until you know still don't not to tamper with them.

    Folder in which you made to locate these files in?  Is there an extension at the end of the file name?  Example: .dll, .sys, .ini

    What is e717295f-174-46de-ae61?

    e717295f-174-46de-ae61 truly is a process belonging to Microsoft Windows Operating System System. It is used by a lot of different software on your computer. Many programs, you are familiar with that run as stand-alone executables, such as e717295f-174-46de-ae61. However, most of the services are executed can operate independently. That of why, e717295f-174-46de-ae61 loads these files and runs himself. This is why you will often find several copies of an e717295f-174-46de-ae61 running on the Windows Task Manager.

  • Reading files with dynamic names

    Hello

    In a graphic Integrator, is it possible to set up a component of reading to read a file whose name is dynamic as a variable? Or lets say using the Clover.bat script, can I pass the file name to the curve?

    Thank you

    Yes. I suggest to create a parameter for the name of the file (for example ${filename}) and then passing to your chart when you call to run.

    http://Forum.cloveretl.com/viewtopic.php?f=4&t=4576

    HTH,
    Dan
    http://branchbird.com

Maybe you are looking for

  • About Firefox shows "day" this Version is old!

    Hi supporter, I often watch news of the Version of my firefox on my macMy security bulletin told me that there is a new version and so I tried to start the hollow of the update of the window "On Firefox" and download the new update. There is a little

  • Firefox does not start, even after reinstalling. Help!

    I click on the icon and nothing. Tried uninstalling and reinstalling, still nothing. Help, I want my back firefox!

  • HP 360: 360 HP - TAKE REAL TAKING THAT CRACK DURING NORMAL OPERATION - QUICK SOLUTION?

    Hello everyone. Does anyone else have this little question? We have a new printer HP 360. When the asple of winding turns, it creates a noise noisy squeaking intermittently. It seems to come mostly from the left side, and not on the right side where

  • PAINT cannot open .odt files

    I created a list of games won in a certain category for pleasure and saved it on my USB flash drive and several times have opened to make sure that I am not a game I already won. Today, it is not open.  He reads THAT PAINT cannot read odt. files.  I

  • Ko 2729449 won't install

    XP sp3 system.Repeat attempts - no joy.informed suggestions please? & thanku!