Batch Rename---in Random Order

Is it possible to batch rename a set of files in a random order? 
Making a slideshow of a number of events, but I don't want them in the order shot.  I can manually rename and move them, or I could sort by some other order than by name or date, such as file size, I guess, but those options haven't randomized the collection as well as I would like.
Just askin'...
Thanks in advance.

I’m not great with Scripts, but this might work:
// adds random five digits numbers at the beginning of jpgs’ filenames in a folder;
// use it at your own risk;
var theFolder = Folder.selectDialog ("select folder that contains the files to be renamed");
// for renaming other files than jpgs change the term in the brackets accordingly;
var theFiles = theFolder.getFiles ("*.jpg");
for (var m = 0; m < theFiles.length; m++) {
var theRandomNumber = String(Math.random()).slice(3,8);
File(theFiles[m]).rename(theRandomNumber + "_" + (theFiles[m]).name)
One can copy the text into a new file in ExtendScript Toolkit (which should be part of Photoshop’s installation) and start running it by hitting the play-button or save it as a jsx-file into Photoshop’s Presets – Scripts; but it really doesn’t do anything within Photoshop, so it may be better not stored there.
Anyway it’s probably be best to run it only on a copy of a folder, because getting the numbers back off later on might be bothersome.

Similar Messages

  • Help: Batch Renaming in Predefined Order

    I couldn't find the answer on here, hopefully someone can redirect me or help me out.
    There's a feature In Photostation, another metadata editing software, that I assume should be in Bridge although I can't figure out how to do it. I frequently get a folder of up to 20 photos, which are named based on when the photographer shot them during the photo shoot. I have to rename them to our standard naming convention, but reorder them so they are listed in the order they show up in a layout. In Photostation, I can look at the folder, select them one at a time while holding the shift key, and then when I batch rename, the program renames the images in the order I had selected. them So the 5th photo now becomes 1, the last one 2, the third one 3 etc etc.
    Is there any way to do this in Bridge? It looks like it just does a straight one to one rename, the first of the original file names becomes the first in the new file names the second the second etc etc.
    Any help would be appreciated.

    Is there any way to do this in Bridge? It looks like it just does a straight one to one rename, the first of the original file names becomes the first in the new file names the second the second etc etc.
    To my knowledge selecting with shift does not rename them in that order. You have however different options for sorting using the sort filter and you can also place them in a manual order (not that nice working as only click in the order as you wish). When having the files in the correct order using batch rename should rename the files in the shown order either descending or ascending according to the selected option.

  • Batch Rename Issues - CS5 - Win7

    Bridge (4.0.2.1) will not Batch Rename in sequential order.  Have tried several times on different folders and get the same results each time.
    For example:
    Folder with 280 images.  I request a Batch Rename in Same Folder, numbered sequentially starting with 001+JobName+Original File Name.jpg.
    What I get is:  sequential 001 to 051, then 096, 098, 100, 102 - 106, then 052 -107, then doubles -  2x 108, 2x 109, 2x 110, 2x 111, 2x 112, 2x 113, 2x 114, 2x 115, 2x 116, 2x 117, 2x 118, 2x 119, 2x 120, then 121-258.
    I've never experienced anything like this, ANY HELP APPRECIATED!!  I do not want to name over 1000 total files by hand!

    Is this really an Adobe Reader problem?

  • Batch Rename Order Getting Mixed Up

    When batch renaming a large amount (usually over 100) of RAW NEF photos, in the format of YEAR_Month_DAY_TIME_#### (where #### is a 4 digit sequence number) EX/ 2014_10-25-122506_0001, the files get renamed and when sorted by file name are in order, however the 4 digit sequence number gets mixed up somewhere along the way.
    It usually happens after the mid hundreds.
    Example, I had apx 900 images in one folder I batched renamed, and the sequence number progressed properly from _0001 to _0191, but then the next image went straight to _0232.
    Any one else experience this issue or have any ideas as to a solution?  Very frustrating issue.
    Thanks!

    Thanks, Tulse... i'm glad that it's an issue that can be reproduced by others. I'm amazed that it hasn't come up (perhaps it has) in the time since Keynote was released. I'm even more amazed that what seems like such a significant bug hasn't been addressed yet. I just hope a new version of Keynote is coming soon that will address things like this.
    The reason i'm doing so many build ins and build outs is because i want the content of the slides to transition independently of the background. This is something i would love to see in the next version of Keynote.
    For example, i'm using a looping video clip as the background, with our company logo superimposed over it. I'd like for the foreground text and other graphical elements to transition from slide to slide, but leave the background constantly looping. So instead of an empty black "stage", i can have 3D effects applied at the slide level without disturbing my own background.
    Anyway... i tried using the blank slide as an intermediary and did not have the success that you did. Build orders still ended up different from those on the master slide.
    I wonder if the builds need to be created in the order in which i want them to appear... it seems like new slides may be ignoring the order in which the builds have been dragged around in the Build Order inspector on the Master, and instead, executing them in the order in which they were created.

  • Batch file rename, in current order?

    After shooting an event, I normally re-sort the images, as some go together better than others. Ultimately, I'm left with a "Manual" sorting. However, when uploading to Zenfolio, the sorting gets lost. Is there a way to batch rename all files, in current order, in a sequence? i.e. instead of DSC_3045, DSC_3055 to IMG_1, IMG_2?

    Yes you could rename the version names so that they are stored this way in Aperture or you could leave the Aperture names alone and just rename on export.
    See the file naming presets for options to add a sequence number to the images as well as many other possibilities.

  • Article fields appear in a random order when viewed in story and galley view

    Is it possible to amend Incopy so that all article fields appear in a consistent order for all articles and users when viewed in Story and Galley view?

    The Finder sorts photos alphanumerically or by date.  It has no "random" capability.  So if you want your manually sorted photos in iPhoto to remain in the same order you need to do one of the following;
    #1
    1 - select the photos in the album as you want them sorted and use the Photo ➙ Batch Rename ➙ Title to Text with a sequential number added to each file name.
    2 - Export the photos to a folder on the Desktop via the File ➙ Export ➙ File Export menu option with the File Name = Title option.
    #2
    1 - Select the album containing the photo in the order you want and export to a folder on the Desktop via the File ➙ Export ➙ File Export  menu option with the File Name = Album name with \ number option.
    Either method will give you files that will appear in the Finder in the order as they were in iPhoto.

  • Batch rename, name changes after frame 99

    Hi, I put a folder into bridge to do a batch rename and called the text MILAN/SYRIA and gave for first number 00.
    After frame 99 the name changed to a weird  Adobe Bridge Batch Rename Temp 10037
    Which you can see better in the RAW windows, the 99 and the following one.
    Photoshop doesn't like to open a name like that, can't blame her.
    of course I strongly suppose that I should have given 3 digits in Batch rename, and l am looking for your confirmation, and while I am here
    why was my card full at 0485 pictures when a folder I think takes as many as 9999, how do you finish a folder if your card is full?
    i suppose you change card and you keep going with the same folder? Sorry about the camera question, couldn't keep it, thanks dona

    no,no, i started with 00 two digits only, batch rename changed to 623  after i put the folder back in just in order to take the screenshot, i dont know why but that always happens if i put the folder back in after usage, but i do know for life now that if I am going to take over 100 shots, which is most of the time, i should start with 001 or 000.
    See, this is the first number that was given to the first file,  01,WHICH actually became  00, i don't have it here.
    So it rest to know where is "Preserve file name " in current metadata, and would that make it possible  to revert to the original CR2 number?
    Why not to change name straight from the new name? thanks

  • Importing .dv clips from hard drive -- clips imported in random order

    I use Firewire DTE drives with my camera when filming. Previously I could connect the drives to my computer via firewire and then import the clips into iMovie HD and the clips would go into the clip sorter in chronological order.
    As of about two weeks ago my clips have started showing up in the clip sorter in completely random order. My projects are typically about 400 clips, so going through and getting them in order takes forever.
    Any ideas?

    See attached discussion:
    http://discussions.apple.com/thread.jspa?messageID=8997363&#8997363
    Instead of renaming them manually you can use a program such as namemangler: http://www.manytricks.com/namemangler/ to change the names at a batch

  • Batch renaming and relinking in InDesign CS4

    Is there a plug-in available for InDesign that will batch rename and relink placed images?
    In Quark, I used Badia Link Renamer which worked perfectly but it's not available for InDesign. (Was told they hope to have it incorporated into BigPicture for CS5.)
    Is there something similar currently available for InDesign?
    Essentially I need it to rename and relink files with random names to structured names such as:
    001_Cust_000123456789_art_r1.tif
    (I love that Bridge does batch renaming but then I have to manually update links in InDesign which is extremely time-consuming. I've also manually renamed/relinked files individually with Adobe Dialogue but it doesn't seem to be part of CS4.)
    Any help or suggestions would be greatly appreciated! Been looking for something for months.
    Thanks!

    Here is my last version of the script, it deals with multiple instances of the same file.
    Kasyan
    var myDoc = app.activeDocument;
    var myAllLinks = myDoc.allGraphics;
    var myMultipleLinks = new Array();
    var myLinksCounter = 1;
    var myPrepend = prompt("Example: thebook_08765", "Job description", "Please enter job description");
    if (!myPrepend) exit();
    var response = confirm("Warning: You are about to rename all images linked to the foremost Indesign Document - proceed? Keep in mind - it is not reversible!", false, "Rename Links Script");
    if ( response == true )
         WriteToFile("\r--------------------- Script started -- " + GetDate() + " ---------------------\n\n");
         for ( k = 0; k < myAllLinks.length; k++ )
              var myLinkName = myAllLinks[k].itemLink.name;
         crearLabels();
         var myPages = myDoc.pages;
         // Pages
         for ( p = 0; p < myPages.length; p++ )
              var myPageNumber = pad000(myPages[p].name);
              var myLinks = myPages[p].allGraphics;
              var myASCII = 97;
              for ( k = myLinks.length - 1; k >= 0; k-- )
                   var myLink = myLinks[k].itemLink;
                   if (myLink.extractLabel("relinked") != "yes") {
                        var myOldLinkName = myLink.name;
                        var myLinkUsage = LinkUsage( myLink );
                        var myExtension = myOldLinkName.substr(myOldLinkName.lastIndexOf( "." ));
                        if (LinkUsage(myLink) == 1)
                             var myNewLinkName = myPrepend + myPageNumber + String.fromCharCode( myASCII ) + myExtension;
                             var myOldImageHDfile = new File( myLink.filePath );
                             var myRenameResult = myOldImageHDfile.rename( myNewLinkName );
                             if (myRenameResult)     {
                                  myLink.insertLabel("relinked", "yes");
                                  myLink.relink( myOldImageHDfile );
                                  try {
                                       myLink = myLink.update();
                                  catch(err) {}
                                  myASCII++;
                                  WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                                  myLinksCounter++;
                             else {
                                  if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + " because the file already exists\n");
                                  else {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
                        else {
                             if (!IsObjInArray(myLink, myMultipleLinks)) {
                                  myMultipleLinks.push(myLink);
         var myMasterSpreads = myDoc.masterSpreads;
         // Master spreads
         for ( m = 0; m < myMasterSpreads.length; m++ )
              var myMastSpr = myMasterSpreads[m];
              var myPageNumber = myMastSpr.name;
              var myPrefix = myMastSpr.namePrefix;
              var myLinks = myMastSpr.allGraphics;
              var myASCII = 97;
              for ( n = myLinks.length - 1; n >= 0; n-- )
                   var myLink = myLinks[n].itemLink;
                   if (myLink.extractLabel("relinked") != "yes") {
                        var myOldLinkName = myLink.name;
                        var myExtension = myOldLinkName.substr(myOldLinkName.lastIndexOf( "." ));
                        if (LinkUsage(myLink) == 1)
                             var myLinkLetter = (myLinks.length == 1) ? "" : String.fromCharCode( myASCII );
                             var myNewLinkName = myPrepend + '_master_' + myPrefix + myLinkLetter + myExtension;
                             var myOldImageHDfile = new File( myLink.filePath );
                             var myRenameResult = myOldImageHDfile.rename( myNewLinkName );
                             if (myRenameResult) {
                                  myLink.insertLabel("relinked", "yes");
                                  myLink.relink( myOldImageHDfile );
                                  try {
                                       myLink.update();
                                  catch(err) {}
                                  myASCII++;
                                  WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                                  myLinksCounter++;
                             else     {
                                  if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + " because the file already exists\n");
                                  else {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
                        else
                             if (!IsObjInArray(myLink, myMultipleLinks)) {
                                  myMultipleLinks.push(myLink);
         // Multiple images
         if (myMultipleLinks.length > 0) {
              for ( a = myMultipleLinks.length - 1; a >= 0; a-- )
                   processMultiUsedLinks(myMultipleLinks[a]);
         WriteToFile("\r--------------------- Script finished -- " + GetDate() + " ---------------------\r\r");
         if (myLinksCounter == 0) {
              alert("No links have been renamed", "Rename Links Script");
         if (myLinksCounter == 1) {
              alert("One link has been renamed", "Rename Links Script");
         else if (myLinksCounter > 1) {
              alert(myLinksCounter  + " links have been renamed", "Rename Links Script");
    //--------------------------------------------- Functions ------------------------------------------------
    // Check how many times the link was placed
    function LinkUsage(myLink) {
         var myLinksNumber = 0;
              for (var c =  0; c < myDoc.links.length; c++) {
              if (myLink.filePath == myDoc.links[c].filePath) {
                   myLinksNumber += 1;
         return myLinksNumber;
    // Relink the links placed more than once
    function processMultiUsedLinks(myLink) {
         var myExtension = myLink.name.substr(myLink.name.lastIndexOf( "." ));
         var myMultiUsedLink = new Array();
         var myAllLinks = myDoc.links;
         for (var d = 0; d < myAllLinks.length; d++)  {
              if (myAllLinks[d].filePath == myLink.filePath) {
                   myMultiUsedLink.push(myAllLinks[d]);
         try {
              myLink.show();
         catch(err) {}
         var myNewLinkName = prompt ("Enter a name for this image", GetFileNameOnly(myLink.name), "This image is placed " + myMultiUsedLink .length + " times");
         if (myNewLinkName) {
              if ( myNewLinkName + myExtension != myLink.name ) {
                   var myOldImageHDfile = new File( myLink.filePath );
                   var myRenameResult = myOldImageHDfile.rename( myNewLinkName + myExtension );
                   if (myRenameResult) {
                        myLink.insertLabel("relinked", "yes");
                        myLink.relink( myOldImageHDfile );
                        try {
                             myLink = myLink.update();
                        catch(err) {}
                        WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                        myLinksCounter++;
                        for (f = myMultiUsedLink.length-1; f >= 0 ; f--)
                             var myCurrLink = myMultiUsedLink[f];
                             if ( myNewLinkName + myExtension != myCurrLink.name ) {
                                  myCurrLink.insertLabel("relinked", "yes");
                                  myCurrLink.relink( myOldImageHDfile );
                                  try {
                                       myCurrLink = myLink.update();
                                  catch(err) {}
                   else     {
                        if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                             WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + myExtension + " because the file already exists\n");
                        else {
                             WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
         UpdateAllOutdatedLinks();
    // Clear labels in case this script has been already run on the current document
    function crearLabels() {
         for (var f =  0; f < myDoc.links.length; f++) {
              if (myDoc.links[f].extractLabel("relinked") != "") {
                   myDoc.links[f].insertLabel("relinked", "");
    function UpdateAllOutdatedLinks() {
         for(var myCounter = myDoc.links.length-1; myCounter >= 0; myCounter--){
              var myLink = myDoc.links[myCounter];
              if (myLink.status == LinkStatus.linkOutOfDate){
                   myLink.update();
    function pad000(myNumber) {
         if (myNumber >= 1 && myNumber <= 9) {
              x =  "0" + "0" + myNumber;
         } else if (myNumber >= 10 && myNumber <= 99) {
              x = "0" + myNumber;
         } else if (myNumber >= 100 && myNumber <= 999) {
              x = myNumber;
         return x;
    function GetFileNameOnly(myFileName) {
         var myString = "";
         var myResult = myFileName.lastIndexOf(".");
         if (myResult == -1) {
              myString = myFileName;
         else {
              myString = myFileName.substr(0, myResult);
         return myString;
    function IsObjInArray(myObj, myArray) {
         for (x in myArray) {
              if (myObj.filePath == myArray[x].filePath) {
                   return true;
         return false;
    function WriteToFile(myText) {
         myFile = new File("~/Desktop/Rename Links Script.txt");
         if ( myFile.exists ) {
              myFile.open("e");
              myFile.seek(0, 2);
         else {
              myFile.open("w");
         myFile.write(myText);
         myFile.close();
    function GetDate() {
         var myDate = new Date();
         if ((myDate.getYear() - 100) < 10) {
              var myYear = "0" + new String((myDate.getYear() - 100));
         } else {
              var myYear = new String ((myDate.getYear() - 100));
         var myDateString = (myDate.getMonth() + 1) + "/" + myDate.getDate() + "/" + myYear + " " + myDate.getHours() + ":" + myDate.getMinutes() + ":" + myDate.getSeconds();
         return myDateString;

  • Photos being synced in a random order (iTunes 10.6.3)

    Hi everyone,
    After I upgraded to iTunes 10.6.3 on my Windows Vista PC, I tried syncing some new photos to my iPad 2, but whilst it was syncing them, all of my other albums on the device now display themselves in a random order. I specifically renamed certain photos in my albums on my PC so that they're the thumbnail image for each album in the "Albums" tab for Photos on iPad. What's going on?
    Apparently, iTunes 10.6.3 was supposed to fix this bug which was in its update description, but I never noticed this bug when I was using iTunes 10.6.2. So rather than fix this problem, it has actually caused it! This isn't happening to all of my albums, but it is affecting around 70% of them.
    I've restored my iPad 2, reinstalled iTunes to the latest version, renamed some of the photos and still the issue persists.
    Is anyone else experiencing this?
    Regards,
    Martin.
    (My iPad 2 is running iOS 5.1.1 if anyone would like to know).

    From my experience, the photos were never sorted in Alphabatical order since IOS4.
    Refer here from article iOS: Understanding photo sorting http://support.apple.com/kb/HT4221
    If using iOS 4
    iOS 4 sorts photos by the Date Taken tag of the photos. Specifically, your device uses the pictures' EXIF tags to determine the Date Taken information. Your device will look for the following EXIF tags within your pictures:
    Capture Date
    Date Time Digitized
    Date Time Original
    Last Modified
    To change the sort order, you must change the Date Taken of photos on your computer. Third-party photo-management software may be able to do this. Refer to the documentation of your photo-management software for more information. In some cases, photos may not have a date in any of the above four EXIF tags, or photos may not support EXIF data (such as JPEG 2000, TIFF, PNG or GIF files). In this case, your device sorts these photos by the date the files themselves were created (as listed in the Date Created field in OS X Finder or Windows Explorer).
    If using iOS 3.1.3 or earlier, photos are sorted on the device alphanumerically by the photos' file names.

  • Bridge CS5 Win Batch Rename sets milliseconds to 000

    Am using BridgeCS5 (Windows7) to Batch Rename (either during download from Lexar Card Reader using Bridge, or during download from Canon 7D with Cable via Bridge- or to batch rename files already in a folder within Bridge)
    when I use YYYYMMDD_HHMMSS_milliseconds, milliseconds are set to 000 (thus photos are not in order necessarily if photos taken during burst mode), yet if I use YYYYMMMDD_HHMMSS_milliseconds, it sorts properly.
    Have tried this multiple times, and it is *usually* reproducable - I did a batch rename on a subset of photos, and Bridge got the rename right, but then did a batch rename on the entire lot of photos, and preview said it would set the milliseconds to 000, even on the photos it got right in the subset-experiment
    I need to use numeric month designation (MM) for proper file sequencing, as alpha (MMM) puts months out of chronological order.
    I did NOT notice this problem in the past (say, 3-4 months ago) but it is possible I missed it.
    I am NOT syncing multiple cameras or trying to integrate files from multiple cards.
    BridgeCS5 is up to date with all patches.
    (I checked the EXIF data on the files themselves, and it is correct, the milliseconds denote the proper image sequence, the camera is recording the files to card in correct sequence - in fact, exloring the card, all images are in proper sequence)
    By having files renamed (without a sequence number added to the batch rename configuration) with milliseconds to 000, not only are they out of order, but Bridge is willing to have several files with the same exact name.
    I'd be interested in a solution that allows me to continue using Bridge only for my workflow.
    thanks - stir

    Hi-
    I see milliseconds (Canon 7D) listed as
    (see Advanced tab)
    3rd folder down titled "exif Properties"
    eg: exif:DateTimeOriginal: 2011-07-30T10:43:12.64-04:00  whereby the camera has ordered the photos using 10:43:12.64, 10:43:12.99, etc when writing to the card.  (I intepret the .64 and the .99 in these examples to be the milliseconds - am I mistaken?)
    Realizing of course, the fact that Bridge is setting milliseconds to 000 is not the biggest concern, the biggest concern is that the photos are out of order when they are imported using the Batch Rename YYYYMMDD (but not when using YYYYMMMDD - notice the three M's there)
    This error occurs whether telling Bridge to sort specifically via Time or not - Bridge (when using YYYYMMDD) will reorder the images even if I don't add HHMMSS and milliseconds to the sort, or even if I do - the problem seems to be the YYYYMMDD - it may also be other Date-sorting, but so far I have only used the one (that doesn't work) and the other (that does, but is useless for keeping the dates/months in numerical order)
    Again, on CF card, the photos are properly ordered, as evidenced by the subject matter and the milliseconds shown in the DateTimeOriginal exif data
    But in Bridge, when batch renaming, the order of the photos is mixed up, and this is evidenced by the new file names (say, if I add a sequence number to the rename)
    btw, I have Bridge rename set to preserve XMP data and original file name, but whether I do or not doesn't seem to matter.
    I'm shooting JPGs in Burst Mode (shouldn't matter, as the files on card are properly ordered)
    (so far I have had 2 Canon reps tell me there are no milliseconds, but the exif data clearly shows that, I think? - I have sent them a screen shot of the file info, showing the exif field, and have not since heard a response saying "nuh uh"... it's still early in the day, though they normally respond within 30 minutes)
    Thank you for your time - Stir

  • Molt: batch renaming utility

    Hi all,
    Recently I was looking for a batch renaming utility, and while I did find a few, none of them would really fill all the checkboxes of my requirements list. Either because they didn’t provide the "rules" I was looking for, or because they would rename files after each rule has been applied, or because they couldn’t be used from scripts (that way I wanted), or whatever the reason. So I made myself one: molt.
    You use it by specifying a set of rules to use, which will all be processed to determine the new name. molt will make sure those new names are "free," as in not already in use; and handles "avoidable conflicts" - when a file's new name is taken by another file to be renamed (performing two-steps renaming with a temporary name if needed).
    Usage: molt [OPTION]... RULE... [FILE]...
    Options :
    -D, --exclude-directories Ignore directories from specified files
    -F, --exclude-files Ignore files from specified files
    -S, --exclude-symlinks Ignore symlinks from specified files
    -i, --from-stdin Get list of files from stdin
    -P, --process-fullname Send the full path/name to the rules
    (Imply --output-fullname)
    -p, --allow-path Allow (relative/absolute) paths in new filenames
    (Imply --output-fullname)
    -m, --make-parents Create parents if needed
    -O, --output-fullname Output full path/names
    -B, --output-both-names Output the old then the new filename for each file
    -N, --output-new-names Output the new filename for each file
    -R, --only-rules Only apply the rules and output results,
    without any conflict detection
    (Imply --dry-run)
    -n, --dry-run Do not rename anything
    -C, --continue-on-error Process as much as possible, even on errors
    or when conflicts are detected
    -d, --debug Enable debug mode - Specify twice for verbose
    output
    -h, --help Show this help screen and exit - Specify twice for
    verbose output
    -V, --version Show version information and exit
    Rules :
    Rules are the part of molt that process filenames. Rules will be applied
    in the order specified, you can use the same rule as may times as you want.
    Some rules require a parameter, what it can be depend of the rule. Usually,
    it will be a string where you can specify multiple parameter using slash ( / )
    as separator.
    --upper Convert to uppercase
    --lower Convert to lowercase
    --vars Resolve variables
    --tpl PARAM Apply specified template (resolve variables)
    --sr PARAM Search & replace a string
    PARAM = search[/replacement[/option]]
    If no replacement is specified, the string will be removed.
    Search is case-sensitive, unless option i was specified.
    --camel Convert to Camel Case
    --list Use list of new names from stdin
    --regex PARAM Search & replace using regular expression
    PARAM = pattern[/replacement[/option]]
    If no replacement is specified, the string will be removed.
    Search is case-sensitive, unless option i was specified.
    Variables :
    You can use variables in the new filenames. The syntax is to put the
    variable's name in between dollar signs, e.g: $FOOBAR$
    You can also (if supported) specify one (or more) parameters, using colon
    as separator, e.g: $FOOBAR:PARAM1:PARAM2$
    Variables are not automatically resolved, you need to use the rule --vars
    in order to have them resolved, which gives you the ability to determine
    when resolving happens, and continue processing with more rules afterwards.
    Note that rule --tpl also resolves variables.
    NB[:PARAM...] Counter, incremented for each file using it
    You can specify up to 3 parameters:
    - the minimum number number of digits (padding with 0's)
    - the starting value of the counter
    - the increment (can be negative)
    E.g: $NB:3:42:-2$ will resolve as 042, 040, 038, etc
    _[:PARAM...] Magic variable: specify "variable" as parameter
    The first parameter is the name of the "variable" to resolve.
    Resolving is done running the corresponding command line, using output
    as value (removing trailing newline (\n) if present)
    Links:
    - Slightly more verbose description
    - Source code
    - PKGBUILD in the AUR
    Hopefully someone may find it useful.
    Cheers,
    -jacky

    Yes, this works. However, this was already part of my workflow.... and not where the trouble lies.
    After exporting jpeg images from Aperture, they carry the same name of the original RAW files, from which they came. (So, IMG_8342.jpg would have started it's life as IMG_8342.CR2.) But we dont' send them out like that. We sequentially name them 0001_image.jpg, 0002_image.jpg, etc... So after renaming, how do you find the original file again, right?
    BEFORE the renaming phase, I would run the "Store Original Names in Spotlight Comments" action. That way, I could look at the comments for a derivative .jpg—whose name has now changed—and determine the name of the ORIGINAL file.
    After renaming, the derivative file might end up being named 0361_image.jpg, but it's Spotlight comments would say, for example, Original Name:<<IMG_8485.jpg>>. Then I would know that this particular file started off as IMG_8485.CR2.
    As such, I could quickly/easily backtrack, knowing that the original RAW file was named IMG_8485.CR2
    The issue is that once you've gone thru the effort to ADD these spotlight comments, if you THEN go through a re-naming step, this erases all those Spotlight Comments. That was my problem... Getting the Spotlight Comments in place was never the issue. KEEPING them there was the problem.

  • File Batch Rename Errors

    I am renaming a lot of files using Bridge Batch Rename and get errors on some of the files.  I have a Windows 7 Professional 64 bit computer running Photoshop CS6.  Bridge version is 5.0.1.23 x64.  I am renaming files using this format - YYYYMMDD-HHMM-XXX-D700, where XXX is a sequence number.  I select an entire folder of images, set the sequence number to 1 and click "Rename".  Most work correctly, but in a few cases I will get several images where the Date and Time number are incorrect.  I know the YYYY is incorrect, but have not looked in enough detail on the other numbers.  I may get 2010 instead of 2007.  If I select these again and Rename I get the correct name. 
    These are NEF files with sidecar files. 
    I will pay more attention to the errors and supply more detail - I have a lot more to rename. 
    Anyone else experience these type errors?

    A card reader was used to copy the NEF file to a folder on the computer.  They were initially renamed using the Batch command in Bridge of Photoshop CS5 using the format YYYYMMDD-XXX-D700, where XXX is a sequence number.  Files were in date order when renamed.  I did not experience any problems with these renames, I only renamed the NEF files.  I also copied the jpg files from the camera, but did not rename them.  I processed the NEF files using Adobe Camera RAW and generated jpg files. 
    I decided to modify the name to allow mixing images from multiple cameras and have them sort in the correct order by date and time shot.  I selected the renamed NEF files in Bridge (Photoshop CS6 now), modified the name to YYYYMMDD-HHMM-XXX-D700 and clicked the rename button.  The sequence number was assigned based on the file order, but the YYYYMMDD and HHMM values were incorrect on a few files.  The incorrect file names were all the same for the YYYYMMDD and HHMM values, sequence numbers were correct, incorrect named files were in sequence order (a group of adjacent files).  The correct YYYYMMDD was 20080630, but the incorrect value was 20100222 and incorrect HHMM was 2042.  The incorrect named files appeared at the end of the list since the date was 2010 instead of 2008, but they had the correct sequence number.  I selected the group of incorrect named files, set the sequence number to the correct value for the first file, clicked rename and they were named correctly.  The number of incorrect named files varies - 5 of 64, 3 of 77, 6 of 59, 12 of 88, 1 of 434.  All of these files have sidecar files since they were processed using Adobe Camera RAW and these files are in the same folder.  The sidecar files are named the same as the NEF file. 
    I also renamed the JPG files that were generated from Adobe Camera RAW and did not experience any problems with names in these files to date. 
    I also tried using Photoshop CS5 Bridge to rename the a group of NEF files and get the same problem. 

  • Batch rename going CRAZY!

    I'm trying to rename some files in a specific order. I put the files in the order manually, then go to batch rename in the same folder. When the rename is complete I'm left with missing numbers in the sequence and the files are completely out of the order I had put them in.
    I'm working of cs3 on a imac.
    HELP!

    Check first if your Bridge version is 2.1.1.9 and then use the purge cache for folder via the tools menu, last restart Bridge holding down option key to refresh prefs. reset the preferences to your need, restart Bridge and it should work.

  • Batch Renaming Image Files from a list of names

    I would like to use the batch rename function in Bridge CS5 to quickly rename newly uploaded image files of our products.  I would like to rename the image to it's corresponding product number.  The issue is that the product numbers aren't in exact numerical order (ie.  the first pic is of product ES2004 and the next one is for ES2012).  The product numbers can sometimes end with a letter or a number.  The pictures are taken in order of the product numbers on an excel sheet.  What's the easiest way to have bridge name the image file to its corresponding part number? 

    Here is an example script that will do the re-naming also place the original filename into the metadata.
    CSV format is fileName,Product IE:
    p1020337.jpg,E179562
    p1020338.jpg,Z556301
    Copy and paste the script into ExtendScript Toolkit (This gets installed with Photoshop)
    Open Bridge
    Edit > Preferences > Startup Scripts
    Click "Reveal My Startup Script"
    Save the script into this folder.
    Close and restart Bridge and accept the new script.
    To use, navigate to the folder with the documents to rename, "Right mouse click Menu" select "Rename to Product" and select your csv file.
    #target bridge 
    if( BridgeTalk.appName == "bridge" ) { 
    fileNameToProduct = MenuElement.create("command", "Rename to Product", "at the end of Thumbnail");
    fileNameToProduct.onSelect = function () {
       renameToProduct();
    function renameToProduct(){
    var Path =app.document.presentationPath;
    var descFile = File.openDialog("Open Product File","CSV File(*.csv):*.csv;");
    if(descFile == null) return;
    descFile.open('r');
    var datFile=[];
    while(!descFile.eof){
    var line = descFile.readln();
    if(line.length > 5) datFile.push(line);
    descFile.close();
    for(var t in datFile){
    var str=datFile[t];
    str= str.split(',');
    var fileName = File(Path+"/"+ str.shift());
    var product = str.shift();
    if(!fileName.exists) continue;
    var ext = fileName.toString().toLowerCase().match(/[^\.]+$/);
    var thumb  = new Thumbnail(fileName);
    var md = thumb.synchronousMetadata;
    md.namespace = "http://ns.adobe.com/xap/1.0/mm/";
    md.PreservedFileName = thumb.name;
    $.sleep(100); //give it time to update the metadata
    var newName = product + "." +ext;
    fileName.rename(newName);
    alert("All done");

Maybe you are looking for

  • AU plug-in, in Components folder, not in GarageBand

    I've been searching through forums for an answer to this, but so far, no luck: I've installed MOTU Symphonic Instrument v1.1.3, which is a stand-alone app as well as an AU plug-in. The plug-in is now in Library>Audio>Plug-ins>Components, but in Garag

  • I can't play Pinochle on Yahoo web site

    I recently updated Firefox and I can no longer play pinochle on Yahoo web site. == URL of affected sites == http://Yahoo.com

  • Turnoff a virtual server using PowerShell

    Hi I have a Server 2012 with Hyper-V on it. I need to shutdown all machines but an ORDERLY shutdown, not just turnoff. the host is not a member of the domain but of a workgroup, all VM are Domain members... Does anyone have an example script to give

  • TS2363 Help can't open iTunes after download

    I was able to download iTunes, but when I click on it I receive: Do you want to allow the following program to make changes? Program name Apple. When I select Yes, nothing happens. Any suggestions?

  • Adf development dream machine

    i'm currently new to adf development and do everything on one machine... jdeveloper, integrated ws and dbms. my p4, xp machine with 2gigs of memory is.... well, not so fast. in fact, although i'm sure there is a bunch of 11g dbms configuration i migh