• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript to read metadata of iMovie clips?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript to read metadata of iMovie clips?


  • Subject: Re: Applescript to read metadata of iMovie clips?
  • From: Tom Robinson <email@hidden>
  • Date: Tue, 18 Jan 2005 14:51:03 +1300

On 13 Jan 2005, at 23:00, Curtis Almond <email@hidden> wrote:

I would like to find a way to pull the date recorded from an iMovie
clip and then rename the file based off the date the video was shot.

I did a similar thing--setting the file creation date off the date embedded in AVI files. I looked at where the date was located from hex dumping the file, then read in that portion of the file.


It's worked fine for me, but then all my AVIs are coming from my digital camera, so there's no consistency problems (maybe the AVI specs say the date can move...)

Anyway, if it helps, here's the relevant code:

-- Read the movie creation date (found from hexdump'ing the file) -- "Tue Dec 17 18:31:38 2002"

set RawDate to read ThisFile from 321 for 24

Then it's a matter of converting RawDate to an AppleScript date.

Cheers
--
The PC demonstrated that the business user would gladly forego graphical bells and whistles and seamless system integration and would tolerate a large dose of flakiness in order to save on price—Michael Hiltzik, Dealers of Lightning


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Inconsistancy Between Do Shell Script and Terminal?
  • Next by Date: multipage TIFFs
  • Previous by thread: Re: Applescript to read metadata of iMovie clips?
  • Next by thread: Downloading a URL's Source Code
  • Index(es):
    • Date
    • Thread