File metadata information

Get this Script Error : Can’t get value of {19011200, 5000, 1, 0}.

Macos Sonoma 14.5

I made the following change and the script worked on my Sonoma computer:

--delete this line
set theSeconds to (value of durationInfo) / (timescale of durationInfo)
--replace the above line with the following
set theSeconds to (item 1 of durationInfo) / (item 2 of durationInfo)

thanks a lot, you made my day, thanks dear :innocent:

This thread is seven years old but still seems to have relevance, and I’ve included a shortcut solution below. The shortcut is easily edited to sort in a desired order; to only act on files with specified extensions; and to return additional media properties. In my testing, the shortcut worked on a drive that was not indexed.

Media Duration Log.shortcut (23.3 KB)

thanks a lot, i am so lucky… :innocent:

Can this script be done in javascript as well ?

I’m not familiar with javascript and don’t know if this can be done. Perhaps another forum member will be able to answer this question.

1 Like