Batch change file date to match exif date

Hi All-
I recently got a mac pro. Upon importing my photos to iPhoto, the file date for each is set to the date of the import. When using the mac photo screensaver, the date that shows up for everything is the import date, rather than the date the photo was taken.
Is there any way to batch change the pictures so that the file date matches the date the picture was taken?
(Or, a way to have the screensaver use that date
Thanks,
-jamie

Interesting, but here is what I found out. I was annoyed because when I sucked in about 1000 JPGs from my camera's memory stick, and then I copied them to my Windows boxen, the file dates were wrong. I was surprised that there isn't an easy way to do this... until your post!! Thanks. *APPLE, Please fix the way "Originals" are stored during iPhoto import*, since something is wrong here. The file dates stored on my memory stick should have been used not the moment I clicked import in iPhoto.
So I moved my jhead to /usr/bin and gave it root ownership and 755 permissions.
All of the pictures seem to be three deep here:
cd ~/Pictures/iPhoto\ Library/Originals
ls -lsGrt /*/.jpg
But that is only a small fraction of mine. Most end in .JPG
ls -lsGrt /*/.JPG
So here is the commands to do the correction of the file date and time. You don't need the find command or that script, although you might need to snoop around and make sure all of your files are here and not any deeper or in some other location. but this should be harmless to run as long as you want to alter every file date.
jhead -ft /*/.jpg
jhead -ft /*/.JPG
And that pretty much does it. I don't see any images elsewhere that were brought in by iPhoto 6 on my machine. I looked for MPG files but I don't have any. This is from a video recording camera, so I don't have any MPGs.
So jrsmobile, my mileage varied a lot, since your method missed about 95% of my photos!!

Similar Messages

  • Batch Change "Date Modified" to match Exif Data After iPhoto Export

    Among several other posts about similar situations, I have found none that directly and simply resolve this issue.
    My wife imported a bunch of photos into iPhoto directly, but I wanted them in a folder on the hard drive.
    I pulled them out of iPhoto into a folder, then deleted the ones in iPhoto so that I could sort them and reimport.
    I then realized that the photos all now showed the date they were imported into iPhoto as their created/modified dates, which makes it impossible to easily sort them by the date of the pictures.
    I checked the Exif data, and it has preserved the correct creation date event though checking "info" on the pictures shows create date the same as modified the same as iPhoto import.
    Is there an easy way to batch change an entire folder of pictures to change the Created/Modified dates to match the Created date from the Exif data?
    The only other similar posts had answers that reccomend a piece of software that does not seem to actually do this, and one that suggests some sort of confusing script that I don't really understand.
    Please help - I have a bunch of family photos that I really need to fix.

    shootShifter helps to redate and rename complete folders of images based on the EXIF data or Finder dates.
    So it will do batches.
    I also believe that exporting the Original (File -> Export: Kind Original) will make all of this unnecessary.
    I don't like having them only in iPhoto so I organize the originals into folders by choronological event then import them so I have copies outside the iPhoto library to put elsewhere.
    You understand that you're using twice the disk space there, right? And that it's quite unnecessary. All iPhoto does is to put them in folders too. Have you looked inside the iPhoto Library ever?
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed. Your photos are in the Masters folder.
    Standard warning: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things,, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Regards
    TD

  • Modify "date modified" on images to match "EXIF date"?

    heya,
    This isn't strictly a Arch Linux related question, but the community on here is fairly knowledgeable, and it's a scripting question .
    I have a bunch of images in a directory, taken by my old BB 9700 phone.
    The names of these are a bit mixed up, because BB's tend to randomly reset the increment counter - the files are named something like "IMG00001-20100216-1319", but I've got "IMG00001-20100418-1220", for example, as well.
    When I browse these with Dolphin (KDE File Manager), I can choose to sort them by name, or by date. However, this is date modified, not the EXIF date. On Windows, Explorer lets you sort either by Date Modified, or by "Date Taken", which I assume is the EXIF date.
    It's a bit annoying that Dolphin doesn't let you sort by EXIF date, but that's another issue. On my phone (Nexus One), the Android Gallery application also seems to sort by Date Modified, not the EXIF date.
    My question is, is there any way to say, run "touch" on the files, and get the date modified to match the EXIF date? Any programs or scripts you know of that can do this?
    Cheers,
    Victor

    Well... you can write a quick 'n dirty script in you favorite language for example zsh+python+awk
    $ for i in *.jpg; do touch -d "$(identify -verbose $i|awk '/exif:DateTimeOriginal:/ {print $2,$3}'|python -c 'from time import *;from sys import stdin; print strftime("%Y-%m-%d %H:%M:%S", strptime(stdin.read(), "%Y:%m:%d %H:%M:%S\n"))')" $i;done
    (This works on bash+python+awk too, I think). This works for me because my photos have a exif filed with 'DateTimeOriginal' run identify -verbose in your images and select the correct field. My exif field have a format '%Y:%m:%d %H:%M:%S' if this is not your case change this.
    EDIT For this simple date format case you can use only awk
    for i in *.jpg; do touch -d "$(identify -verbose $i|awk '/exif:DateTimeOriginal:/ {print $2,$3}'|awk -F : '{printf("%s-%s-%s:%s:%s", $1,$2,$3,$4,$5)}')" $i;done
    Last edited by kazuo (2010-06-23 01:36:28)

  • Batch convert Raw to jpg with EXIF data

    I would like to batch convert RAW images files to jpeg format while preserving the EXIF data.  Is there any way to do this with the built-in apps in OS X Mavericks?
    This used to be possible with Preview.app using the "Export Selected Images..." command.  However, as of Mavericks, that command does not correctly copy EXIF data for the individual images.  Instead, the EXIF data for the first image is used in all of the exported images. So Preview.app is now pretty much useless for converting batches of RAW files.
    Can anyone point me to a workaround in Preview.app, or an alternative way to do this conversion in Mavericks?
    I should add that I don't want to import all my images into iPhoto.  I prefer to use regular folders to organize my images rather than the walled library that iPhoto creates.

    Andrew Shalit wrote:
    I used iPhoto for many years and found it to be cumbersome and more trouble than it was worth.  It did not let me manage, organize, rate, tag, and edit my photos in any way approaching convenience. 
    Hate to say this for the 3rd time, but use Canon's "DPP" (Digital Photo Professional).
    With it you can "manage, organize, rate, tag, and edit [your] photos" as well as batch convert to jpeg or othet formats.

  • PSE 10 editor changing date taken in EXIF data

    Hello. I have just joined the forum after recently buying PSE 10 Editor for Mac. I had no trouble at first but now after I have saved an edit I  find that the date taken has been changed to the same as the date modified & imported.
    I can change it back manually through iPhotos menu but this is a bit of a nuisance when a lot of photos are involved, I don't know why it has happened but how do I reset it to give the correct date ?

    I hate to be the bearer of bad news, but it didn't help.  I lost another photo today and had to retrieve it
    for the Organizer from my Windows files.  Instead of placing it next to the original photo (or in the same area), it placed it in a file called Adobe/Photoshop.com.  I made sure again that the line you referred to isn't checked.  In addition, when the photo doesn't get lost, the Exif date for the photo does get lost and the photo is dated today.  These two problems seem to be connected, although I can never predict which one will occur.  Anybody have more ideas?  Could it be a Windows 7 issue rather than a Photoshop issue?

  • Trying to write an Automator program to find files with same time created and change file names to matching source folder names

    I am failrly green when it comes to automator.
    I am trying to write an Automator program:
    Not sure where to post this
    trying to write an Automator program to find files and alter their names
    I have a source folder with correct named master files in it.
    eg. A0001_1234.mpeg
    time created 14:02:03
    date 07/07/2012
    Another folder where there will be copies of the master files in a different format with different names but created at the same time as a file in the source directory.
    they are created with a seperate device but they are
    A0000001.mp4
    time created 14:02:03
    date 07/07/2012
    I need it to then take the name from the source fies and apply the correct name to the matching file based on the time it was created.
    I can't seem to find actions in automator that reference time crated.
    Is this something I will be able to Do in automator?
    Any help would be great
    Thanks
    R

    Hi,
    It's impossible to do this without any script in Automator.
    Use this AppleScript script :
    set source to choose folder with prompt "Select the source folder"
    set anotherfolder to choose folder with prompt "Choose the another folder"
    tell application "Finder"
        repeat with tfile in (get files of source)
            set cDate to creation date of tfile
            set findFiles to (files of anotherfolder whose creation date is cDate)
            if findFiles is not {} then
                set tName to name of tfile
                set name of item 1 of findFiles to tName
            end if
        end repeat
    end tell

  • Batch change file names

    How can I batch change all my file names?

    I am having a similar problem in Lr4. I made the mistake of not specifying a custom name at the beginning of a big import and I now have hundreds of photographs called "untitled_date_picture name_sequence.dng" I have created a custom renaming action that I normally use for all imports except this time I forgot to specify the custom text part at the beginning of the file string.
    I cannot see how I can now batch change the "untitled" part only to show correctly. If I try and create a new renaming action by adapting a custom action i.e. by making the following:
    Peru_Date_File Name (or Original File Name)_Sequence, the 'file name' part is replaced by "untitiled_111002_P1000245_12" for example. I am guessing that this is becasue the 'file name' is the entire string and not just the P1000245 part only which is the name created by the camera.
    Any ideas how I can batch change the 'untitled' bit only or do I have to reimport the photos all over again?
    Alternatively, is there a way to do this with the file names in Finder? I'm on a Mac by the way.
    Many thanks
    Chris

  • Does Adjust Date & Time Modify EXIF data?

    If I use the adjust date and time does it modify the exif data in the original photo, so if I export the photos elsewhere it will preserve these edits? I was using Picasa and fixed the date and time on a few photos only to find them back to 1/1/2002 when I imported my photos to iPhoto

    I just saw this checkbox today and hoped it meant that. I've really wanted this feature for a long time now.

  • Batch change files of folder

    Hi all
    The following script will be saved as a droplet which will batch
    change permissions of the folder and it's contents when they are
    dropped onto it. I can only change the folder not the contents, how
    would I get it to do the folder and the contents of the folder?
    on open (these_objects)
    repeat with each_object in (get every item of these_objects)
    tell application "Finder"
    set owner privileges of each_object to read write
    set group privileges of each_object to read write
    set everyones privileges of each_object to read write
    end tell
    end repeat
    end open
    Cheers
    Budgie

    Assuming you're only dropping folders, you'll need a nested repeat. See my notes…
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on open (these_objects)
    -- repeat with each_object in (get every item of these_objects) -- redundant. these_objects is already a list of folders
    repeat with each_object in these_objects
    tell application "Finder"
    set owner privileges of each_object to read write
    set group privileges of each_object to read write
    set everyones privileges of each_object to read write
    repeat with file_object in (get every item of each_object) -- deal with the contents of each folder in nested repeat
    set owner privileges of file_object to read write
    set group privileges of file_object to read write
    set everyones privileges of file_object to read write
    end repeat
    end tell
    end repeat
    end open</pre>
    Edit

  • Changing File Names w/o Reading Data?

    Hi All,
    I'm trying to get Labview to change the name of files in a directory,
    without having to read the data.
    I'll have a variety of data sets (text, binary, PDF files, etc), and
    would like to rename them.
    Any hints? I tried using the "open/create/replace file.vi" by opening
    the file, read the file, close it, create a new file, write it, close
    it, but it doesn't work. I've also tried "copy" primitive under the
    advanced file functions, but only get new directories created with
    files in them. The following is what I got when I used it:
    For example, the directory “c:\stuff” , will have files
    "file1.aaa, file2.BBB and file3.ccc", if I want to rename
    “file1.aaa” into the file named "1file.AAA" by using the
    "copy" primitive (in the Advanced File Functions), then I get a folder
    called "1file.AAA" with the three files, "file1.aaa, file2.BBB and
    file3.ccc", in them.
    I can manipulate directories, copy files into new ones, but not rename
    files.
    Kind regards,
    -Dorian

    Spaz wrote in message news:<5065000000050000002C710000-1017707437000@exc​hange.ni.com>...
    > The Move.vi works in NT if your 'moving' to the same directory.
    Yes... I figured out what I was doing wrong. Using the "Copy"
    primitive, I was including the file name AND path, which was read as a
    new folder with the name of the file. If I remove the path, it will
    copy the files to the same directory, with the name I wanted.
    Thanks!
    -Dorian

  • In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp (EXIF date fields as

    I tryed to sort my pictures with buying Apps and following suggestion from apple, but without any success. In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp.

    Not a problem when using iPhoto on a Mac, which the transfer of photos is primarily based on - not manually managing photo storage as seems to be common with Windoze.
    The same should be available with a supported photo management app on a PC.
    http://support.apple.com/kb/HT4221

  • How to batch change file permissions?

    I posted this problem in another forum and think it belong here.
    A client sent me a CD of data and graphical files. I copied them into a new folder on my desktop but I am unable to alter or change them because they are read only.
    How can I change all the files in the directory over to read/write? Is there an easy way to do this?
    John

    BatChmod is a good GUI application for changing permissions.
    Or you can try this in a Terminal window:
    chmod -R u+rwX [spacebar, drag folder to Terminal window, press return]

  • Scheduled date not matching std dates defined

    Dear all,
    We are facing scenario where when we create process order in the system, The system automatically assign dates of operation to be completed ( Earliest & Latest ) while in recipe we have defined std time for that particular phase. So my query is how system calculates those dates & where i can change or check so that system should throw dates in relationship with STD time provided for that operation.
    Because of that we are not able to plan our capacity correctly as system itself showing not expected or correct timing for the operations.
    Please refer following screen shot for your reference.
    1) Operation screen for process order
    Now for phase 0011,
    please check phase details.
    In formula for resource we have kept OH time as operation time.
    So according to me, system should take show
    1) for phase 0011 latest start time 07:00:00 & latest finish time 15:00:00 i.e. 8 hrs which is defined in recipe. as of now it shows 07:00:00 to 16:37:27. i.e. 9hrs 37 mins. approx.
    Please advise,
    Thanks in advance.
    Regards,
    Deep Dave.

    Dear KK,
    Please find below SS for your reference.
    1) Operation Screen
    2) operation timings
    3) Capacity header for resource used.
    I guess this will be sufficient data to analyze. Please revert your thoughts on same.
    Regards,
    Deep D.

  • IPTC core Date created from Exif Date created

    I have to populate the Date Created IPTC field, and sometimes make mistakes because of the (illogical) US order of MM/DD/YYYY.
    But that process could be automated since the info is already in the EXIF field.

    The very talented and patient Paul Rigott is helping me on this not so uncommon request. http://forums.adobe.com/message/3353144#3353144
    Hear, hear, engineering team, you should get him to beef up Bridge and all other applications!

  • Batch changing file permissions?

    I have a bunch of photos from a recent trip on my laptop. I just transferred them to my Mac Pro desktop rig. Unfortunately every single one of them says I don't have permissions to open them. Other than doing a get info on each and every single one - one at a time - is there a way to batch process the permissions so I can open them in Lightroom and Photoshop on my desktop rig?

    Open the Terminal in the /Applications/Utilities/ folder, type in the following:
    chmod u+rw
    Type a space, drag all of them into the Terminal window, and press Enter. No message will appear unless there's a problem.
    (48039)

Maybe you are looking for

  • Error trying to open a file using java.io.* in an Applet

    I have a file called wordlist.txt and I am using java.io.* to open it. When I try it in Applet Viewer it runs without a hitch. But when I try to run it in a browser as an Applet, it errors out saying: com.ms.security.SecurityExceptionEx[package3/Spel

  • How to execute from multiple inputs

    Using Jdev 11.1.1.2, windows, ejb3.0 with annotations, scenerio i have a method that I need to execute. I have two values. first value is coming from a parameter that is being passed in second value is coming from a Select One Choice drop-down box Bo

  • How do I reinstall Lightroom 4

    I had to reformat my disc on my macbook and now want to reinstall Lightroom 4.  It shows in my orders. but I the download doesn't work. Thanks Deborah

  • Long Term Signature & Advanced functionality of Reader (measurement) not compatible with the PDF/A

    Dovrei pubblicare sul web e distribuire più di 800 file PDF di grafica vettoriale quasi tutti ottenuti da ArcView e Adobe Acrobat XI.   (Windows XP S.P.3) Tutti i PDF sono stati verificati con la "Verifica preliminare" di Acrobat XI risultando confor

  • Applet won't finish loading

    Please bare with me as I'm new to Java. I'm using Eclipse 3.1.1. I'm working on a cheesy client server project to learn the language. I'm having difficulty with the client. It runs fine through Eclipse. When I compile my jar, sign it and run it from