Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Chronologically sort trimmed videos in iPhoto Apps
if you take movies with your iOS device (or other camera) that need to be trimmed, you may have encountered the following. If you do not trim the movie on the device, but do it later on your Mac using QuickTime, the file’s date will change to the date you trimmed it, resulting in an incorrect sort order in iPhoto.

Terminal and touch come to the rescue:

First check the original file’s date and time in the Finder by selecting it and pressing Command-I.

Then, in Terminal, use touch to change the date and time. Here’s an example:
 touch -t 201208191230 /Users/myname/Desktop/ 
This will change the file's modification date to August 19, 2012 at 12:30. Doing this before importing the trimmed video will keep an appropriate sort order in iPhoto.

Check man touch for more on using this command.

[kirkmc adds: The touch command is nothing new, and there's even a hint about using touch with iPhoto that's more than ten years old. I thought it was worth posting this, however, because of the issue with dates that are changed when editing files such as movies.

If you want a GUI alternative, you should look at A Better Finder Attributes, which I recently reviewed for Macworld.]
  • Currently 3.20 / 5
  You rated: 3 / 5 (5 votes cast)

Chronologically sort trimmed videos in iPhoto | 3 comments | Create New Account
Click here to return to the 'Chronologically sort trimmed videos in iPhoto' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: Chronologically sort trimmed videos in iPhoto
Authored by: Uncle Asad on Aug 23, '12 05:36:28PM
If you have the original file still around and it has the correct date, you can instead use touch -r:
 touch -r /Users/myname/Desktop/ /Users/myname/Desktop/

[ Reply to This | # ]
Chronologically sort trimmed videos in iPhoto
Authored by: Strod on Aug 23, '12 08:09:55PM

Silly piece of trivia: the original hint showing the use of touch to adjust the date shown by iPhoto was posted precisely the day after iPhoto was first introduced:

[ Reply to This | # ]
Chronologically sort trimmed videos in iPhoto
Authored by: barefootguru on Aug 24, '12 03:57:58AM

Have I missed something? You can adjust the photo/movie date from within iPhoto: in the Photos menu are commands for adjusting either one or many photos, including adding a set or incrementing offset when editing a batch.

[ Reply to This | # ]