How to copy "More Info" from Finder information window?

When I use the “Get Info” command on, for example, a .mov file, the “More Info” section has the Dimensions, the Codecs, the Duration, the Source (Where from) and Last opened.

How can I copy and paste that information into a text program or spreadsheet?

This script gets me most of the way there: I’m just missing the Dimensions information.


set AppleScript's text item delimiters to ""
tell application "System Events"
	set theInfo to the value of static texts of scroll area of ¬
		window of process "Finder" as list
	set theCount to the number of items of (item 1 of item 1 of theInfo)
	set theTexts to {}
	repeat with w from theCount to 1 by -1
		set the end of theTexts to value of static text w ¬
			of scroll area of window of process "Finder" as text
	end repeat
	set AppleScript's text item delimiters to return
	set the clipboard to theTexts as string
end tell

So my clipboard will hold information like this:

So can anyone suggest a tweak? Ideally, it would be great if I could copy Dimensions, Codecs, and Duration each separately, but I don’t want to press my luck on asking for help. :confused:

Hi,

An old script…

tell application "Finder"
	set SiTem to selection
	repeat with i from 1 to number of items in SiTem
		set this_item to POSIX path of (item i of SiTem as string)
		do shell script "mdls " & quoted form of this_item & " | open -f"
	end repeat
end tell

But note the:
kMDItemPixelHeight
kMDItemPixelWidth