Organize a total mess of several thousand jpegs in time-stamped folders

Hello!

Location:

My collection of pictures of sisters is a total mess without any rational system for her. Its just illogical structured with files with generic keywords and thousands of files in each folder. For example, it's a folder called "travel" where she just dumped thousands of unique files of 10-year vacation. Not the word 'various' and 'misc' records. You get the idea. * lol *.

What I'm doing:

It seems like all the pictures have the correct EXIF data on their property. So what I want to do is to restructure the collection records (with EXIF dates) in a way similar to this:

"/ various/filename.jpg"-> "/ 2012_06_25/filename.jpg".

"/ friends/filename.jpg"-> "/ 2012_05_01/filename.jpg".

and so on.

At least then he gets some kind of chronological structure to it. I want to physically organize files, not organize them through a database.

What is the best approach to do something like that? I guess I could just batch rename everything from the EXIF with Bridge and then organize from there - but it will always be very tedious. There must be a better way (anyone know PS/Bridge scripts that can do this? More automated best. I use the bridge and I don't have LR - but if LR can do what it * could * be whats finally push me to buy it.

I appreciate very much all the advice on how to go about it!

It is a bit rough and ready, but should do the job.

Copy and paste the script in ExtendScript Toolkit, this program is installed at the same time as Photoshop.

This can be found:-C:\Program Files (x 86) \Adobe\Adobe utility - CS5

Run the script, it will open a bridge if it was closed, he would then invite for two records.

The first folder he wants is the top level of the images folder.

The second folder is the top-level folder where all new folders will be created and the files moved.

This second issue will contain also a duplication error log or it cannot process the file.

There will be a created folder called noExif and files will be placed here if no exif data

Once the script is run to fetch a cup of coffee, the script will give a warning message when finished.

#target bridge
app.bringToFront();
main();
function main(){
var folders =[];
var topLevel = Folder.selectDialog("Please select top level folder");
var topLevelOut = Folder.selectDialog("Please select top level output folder");
var errorLog = File(topLevelOut + "/ErrorLog.txt");
errorLog.open("e", "TEXT", "????");
errorLog.seek(0,2);
$.os.search(/windows/i)  != -1 ? errorLog.lineFeed = 'windows'  : errorLog.lineFeed = 'macintosh';
folders = FindAllFolders(topLevel, folders);
folders.unshift(topLevel);
for(var f in folders){
var FileList = folders[f].getFiles(/\.(jpg|jpe|jpeg|gif|eps|dng|bmp|tif|tiff|psd|crw|cr2|rle|dib|cin|dpx|ps|pcd|pict|vda|icb|vst|wbm|sct|pbm|flm|psb|exr|pcx|pdp|nef|dcr|dc2|erf|raf|orf|tga|mrw|mos|srf|pic|pct|pxr|pdd|pef|png|x3f|raw)$/i);
for(var z in FileList){
    var newFolder = getExifDate(FileList[z]);
    var moveToFolder = Folder(topLevelOut + "/" + newFolder);
    if(!moveToFolder.exists) moveToFolder.create();
    var testThumb = File(moveToFolder + "/" + FileList[z].name);
    if(!testThumb.exists){
    try{
    new Thumbnail(FileList[z]).moveTo(moveToFolder);
    }catch(e){errorLog.writeln("Unable to process :- " + decodeURI(FileList[z])); continue;}
    }else{
        errorLog.writeln(decodeURI(FileList[z]) + " Is a duplicate in " + decodeURI(moveToFolder));
        }
    }
}
errorLog.close();
alert("Script completed");
function getExifDate(fileName){
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
try{
var xmpf = new XMPFile(File(fileName).fsName, XMPConst.FILE_UNKNOWN, XMPConst.OPEN_FOR_READ );
}catch(e) {errorLog.writeln("Unable to process :- " + decodeURI(fileName)); return "noExif";}
var xmp = xmpf.getXMP();
var exifdate = xmp.getProperty(XMPConst.NS_EXIF, "DateTimeOriginal");
xmpf.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
try{
return exifdate.toString().match(/^.{10}/).toString().replace(/-/g,'_');
}catch(e){return "noExif";}
}
function FindAllFolders( srcFolderStr, destArray) {
 var fileFolderArray = Folder( srcFolderStr ).getFiles();
 for ( var i = 0; i < fileFolderArray.length; i++ ) {
  var fileFoldObj = fileFolderArray[i];
  if ( fileFoldObj instanceof File ) {
  } else {
         destArray.push( Folder(fileFoldObj) );
  FindAllFolders( fileFoldObj.toString(), destArray );
  }
 }
 return destArray;
};
}

Tags: Photoshop

Similar Questions

  • My computer is a total mess. I BELIEVE THAT IT IS DUE TO TE VIRUS OR MALWARE THAT SPEAK

    My computer is a total mess AND I can't UNDERSTAND WHAT O DO - I THINK it IS IN REASON OF TE VIRUS or MALWARE THAT PEOPLE TALK ABOUT AND I'M NOT SURE what MY NEXT STEP SHOULD. IT WAS ANNOUNCED THE NEWSPAPER TV TE DAS SEVERAL THERE THAT MICROSOFT HAD A PATCH TO FIX THIS PROBLEM, BUT HOW TO ACCESS THIS PATCH THANKS

    [Original title: rosie]

    Hi Rosie,

    If you feel that your computer is infected with a virus, the I suggest you try the steps in the following Microsoft Help article and check if it helps.

    How to remove a computer virus?

    http://Windows.Microsoft.com/en-us/Windows/how-remove-computer-virus#how-remove-computer-virus=Windows-7

    You can also view the following Microsoft Help as well.

    http://Windows.Microsoft.com/en-us/Windows/does-computer-have-virus#1TC=Windows-7

    Regarding the patch, Microsoft will release an update or hotfix Windows updates if there are the bugs present in the Microsoft product. Stay in control of the Windows updates for updates.

    Please reply with the status of the issue so that we can better help you.

  • Get the following message after closing or printing a document: the Organizer database is damaged and will be rest next time Acrobat is launched.

    Get the following message after closing or printing a document: the Organizer database is damaged and will be rest next time Acrobat is launched.

    Hi kathleenm92885635,

    Please check the solution in this doc. KB: http://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html

    Let me know how it goes.

    Kind regards
    Nicos

  • Create several clones at a time

    Hello

    I want to prepare the number of virtual machines (i.e. clones or pictures) of the gold statue.

    I develop my own UI where I'll be selecting one of the images existing gold. I will mention a number of clones that I need. When I click on the button, I'll be citing vSphere appropriate web services API to create clones.

    Can someone tell me what do I want to accomplish is feasible or not? Can we create several clones at a time? And that too the use of web services?

    Take a look at CloneVM_Task() , you can certainly deploy several clones at the same time, but you probably want it saving 3-4 as it's pretty resource, especially against your storage space.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Several video tracks slow time of export in first pro?

    I work on a dslr shot the video.  The full video is 7 minutes, but when I export the video, it takes an excessively long time.

    The first minute is only a simple video track layer and rendering of export moves at a normal pace.

    But at 30%, its took about half and hour to increase by 1%!   I think it's because it probably where I have multiple video track stacked each other (b-roll).

    Follow the guys always cut the video base on top of which is b-roll to make a single layer video?

    Several video tracks slow time of export in first pro?

    How can I optimize the speed of rendering of export?

    HP 510 t

    Windows 7 Home Premium x 64 bit

    12 GB of Ram

    I7 2600 CPU @3.4 GHz

    ATI Radeon HD 5570

    The only way that more tracks could slow if export is that you can see all of these tracks on the screen, as the picture in the picture.  If you can't see the top layer follow, then simply have the video under which will have no effect at the time of export.

    Effects and others can slow things down.

  • dissection of an image into several pieces at a time

    Hello forumers.

    I'd like know if I can dissect a picture into several pieces at a time, as in illustrator I can use the tool.ive pathfinder makes a picture with a box

    and as you can see there the lines guides, is there a command in the ps that can make guidelines dissect the image? I know that the guidelines

    can turn into a slice, but it's for the web if im not wrong.

    Thank you.upload-to-adobe.jpg

    Unfortunately, Photoshop doesn't have a pathfinder in Illustrator.

    To break an image (for example: shattered glass), I

    • make a selection (from paths, or channels or layer masks)
    • Order J float a copy of this layer
    • back to my original layer, make a new selection and repeat this operation as many times as necessary.

    Alien Skin Software has a few effects plug-in to do this, but I usually like manually create effects to have a more personal rather than watching canned.

  • total accumulated over several fields

    drop table Emp;

    create table Emp (Id varchar (30),)

    Varchar (1) gender,.

    Year varchar (4),

    AMT decimial (18.2)

    );

    delete from Emp

    commit;

    insert into Emp values ('1', 'F', '2010', 2);

    insert into Emp values ('2', 'F', '2010', 4);

    insert into Emp values ('3', ', '2011' 5 ');

    insert into Emp values ('4', ', '2011' 5 ');

    insert into Emp values ('5', 'F', '2011', 2);

    insert into Emp values ('6', 'F', '2012', 2);

    insert into Emp values ('7', ', '2012', 10 ');

    insert into Emp values ('8', 'F', '2012', 5);

    commit;

    output

    Year Total sex

    6 2010

    2011 M 10

    8 2011

    2012 M 20

    15 2012

    I'm trying to write a script that return cumulative run total (sum) for the combination of year and sex. Is there anyway that the above output is possible via the analytical function in an effective manner.

    Try the below

    SELECT year

    gender,

    Max (tot_amt) total

    (SELECT YEAR

    gender,

    Sum (AMT) OVER (PARTITION BY gender ORDER BY year) tot_amt

    FROM emp)

    GROUP BY year, sex

    ORDER BY 1;

    Post edited by: 000000

  • Total responses of several drop-down lists

    Hello:

    I have a form that is a series of 14 questions.  Each question has a drop down list with 4 possible answers (Yes, no, n/a, unobserved).

    I need to show a total of responses (Yes, number no., etc.) at the end of the form.

    No real experience in the use of scripts, but eager to learn...

    Thank you!

    You may need to expand the scope of the conditional expression to include the table.

    Something like:

    this.rawValue=xfa.resolveNodes('Table.Row.[Cell1.rawValue=="1"]').length;
    

    It is not to see your exact hierarchy.

    Kyle

  • Some shortcuts are a total mess in CS 5.1 under Lion

    The title pretty much everything said... Brush dynamic resize and the HUD color picker to name two... When the shortcul of resizing works (CTRL + OPT + click - drag) it only works for a minute or two and after that move the art jury all around the monitor... very intermittent and buggy! I had hoped that the 10.7.2 update should fix the problem but no luck. Similarly, it seems I need to simultaneously press CTRL + OPT + CMD to bring up the HUD...

    On Snow Leopard, I run CS 5 nd it works perfectly... only need hold the CMD key to call the HUD

    but that said, these cable shortcuts are a joke full... why no option for users to configure shortcuts?

    Complete mess... I only paint on Snow Leopard (my machine at home) or use the painter on Lion where there is no question...

    Lion was a moment now... surprised this questions was not addresses if indeed it was even raised at all before now!

    -tested in 64-bit and 32-bit mode...

    In its current state on the Lion, Photoshop is almost uselesss for me as a painting tool - correction please!

    PS - I have reset preferences, re-installin photoshop etc... It's obviously a nice question does not play between the Version of the OS and the PS...

    Problem solved...

    I run Hyperdock and must have forgotten to revise my settings when I reinstalled it on Lion. The problem lies in the management of the windows where hyerdock took the keystrokes and adjust rather than photoshop...

    Windows settings "Move Windows by pressing on" was awarded to: Ctrl + Opt + LMB...

    and 'Resize Windows when Holding Down' Ctrl-Shift-Opt - MLB

    Unchecked that and now the dynamic shortcuts are behaving like expected.

  • Why your update totally mess up my computer?

    I avoided the upgrade as possibly in anticipation of problems, but I use you tube and he's now threatening me. Of course your upgrade has been so bad that it almost off my entire computer. Slowdown to "glacier" in speed and was unable to use my Word office program, even with Firefox closed and restarted once. I had to come back in 24 hours and reset so that I can continue my work. I use Windows 7. I liked Firefox just the way it was. It's as bad as health care don't act... no option but to upgrade, the losers and suffer. I guess I'll have to give up your program.

    Your string UserAgent in Firefox is marred by another program you have installed. It is said that you use Firefox 3.6.24.

    http://en.Wikipedia.org/wiki/USER_AGENT

    type of topic: config in the URL bar and press ENTER.

    If you see the warning, you can confirm that you want to access this page.

    Filter = general.useragent.

    Right click the preferences that are "BOLD", a line at a time, select reset.

    Then restart Firefox

  • import bookmarks not to internet explore. ALL rearranged in a TOTAL MESS.

    All bookmarks are rearranged. Even pages that are located in the folders are duplicated and listed separately.

    If there are problems with importing IE bookmarks in Firefox, then export favorites in Internet Explorer to a HTML file and import this file in the Firefox Bookmarks Manager.

    If you don't have the menu bar in Internet Explorer, and then right-click on the toolbar above to activate the menu bar.

    • Export Favorites in Internet Explorer to a file (bookmarks.html) HTML:
      File > import and export
    • Import HTML file in Firefox:
      Bookmarks > show all bookmarks > import and backup > import bookmarks HTML

    See "Import from another browser" and "import from file":

  • I downgraded 10 back to 9.0.1 but now everything is totally messed up! Some fonts don't square just symbols everywhere.

    I went to the site of FF to upgrade to 10 again but it says download FF v.10 and I want to just update and not to lose all my favorites. Help, please! Thank you.

    Do a cleaning (re) install and delete the folder of the program Firefox (C:\Program Files\Mozilla Firefox\).

    Download a new copy of Firefox and save the file to the desktop.

    Uninstall your current version of Firefox, if possible.

    • Do NOT remove the data of a personal nature when you uninstall the current version or you lose your bookmarks and other data, because all profile files will be deleted.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    Your bookmarks and other profile data stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

    If, you have the problem then try a new profile.

    See "basic troubleshooting: a new profile:

    If this new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • Toshiba won't give me my key. I had one when I used to reinstall my windows 7, it has totally messed up my computer. Help

    Toshiba refuses to give me my key again.  They want me to buy something.  I can buy a new windows 7.   I want a working key that came with my windows 7 that was installed when I bought the computer.

    If I have TO pay more money to buy what they should have delivered I need it within 2 days.  I spend out of the country in 3 days

    Your options are limited.

    Option 1:

    If the COA sticker is damaged, you must use the recovery partition to reinstall Windows 7, it will be exempt from the need to use the product key to activate your installation of Windows 7.

    Option 2:

    If your recovery partition is not available or damaged, you must contact the manufacturer of your computer, and request that a defined recovery disk you can use to reinstall Windows 7. They could practice a small shipping and handling. This will exempt the need to also use the product key.

    Option 3:

    If neither options 1 or 2 is possible, then you will need to invest in a new license of full version of detail.

  • How can I close only 1 session, without closing all sessions, when you run several at the same time?

    I run normally 2 sessions of Firefox. Currently I have 3 sessions running. How can I close only 1 session without closing all? When I choose "File" and then "Exit", all sessions nearby.

    Firefox does not work more 'sessions', you see several windows running in the same process. IE runs each window in its ' own process and Chrome runs each tab in its' own process, but Firefox running in a single process.

    Do not use file > outputis to completely close Firefox, do not close the window you are looking at when you use this command. There was formerly a command to close this window on the file menu, but who took a few versions ago. You will need to use the X in the upper right of the window to close this window and leave the other open windows. Or you can use {Ctrl + Maj + W} close the window that is to the point (where you look).

  • cannot return back or forward more than one page at a time, what happened to the little arrow that would allow you to go back several pages at a time.

    Some Web sites disable the back button. older versions of firefox, I could hit the little arrow to the right of the forward button and it would display several pages back, so I could choose which one to go backward or forward to. now I'm going back as much as a person with a disability page and cannot go further. It's really annoying to lose a feature that I used all the time

    There are three options to access the history: (1) click and hold the back button. Right (2) click on the back button (3) If you really want installation back, dropmarker one add-on: https://addons.mozilla.org/en-US/firefox/addon/backforward-dropmarker/.

    Hope that helps :)

Maybe you are looking for

  • Control Panel opens at startup

    Control Panel opens at startup!How can I stop this.I recently installed antivirus software, maybe it has affected the settings?Any suggestions?See you soon

  • 55 "VL900A - volume fluctuations

    I bought a new 55 '' VL900A and experiencing fluctuations in volume.... This happens usually when there is a cut scene with a black screen for a long time break in the show/movie. Volume increases very high when the next scene begins and then reduced

  • Cannot turn on by Satellite L500-14Z - BIOS Upate failed

    Hello I downloaded the latest BIOS update for my laptop.The update started, but after a while my windows 7 has been frezzed I think (do not answer on moving the mouse), and after a few minutes it powered by off.e Now I can not power on my laptop.I ha

  • SL410 hanged during the update of the BIOS

    Same thing happened to me to what is described in this post BIOS problem So basically the BIOS update utility hung on the stage where he asked me to restart the computer. The YES button was stressed, but neither the keyboard nor the mouse pad reacted

  • Camera.h - Autofocus assist light

    Hello everyone! I developed an application that takes pictures using the C++ API camera.h: https://developer.blackberry.com/native/reference/core/com.qnx.doc.camera.lib_ref/topic/overview.htm... I disabled the flash, but the LED still flashes in the