Read video frame rate and resolution
Mac Pro, 8-core, Mac OS X (10.5.7), Two NVIDIA GeForce 7300GT
Mac Pro, 8-core, Mac OS X (10.5.7), Two NVIDIA GeForce 7300GT
*tell application "QuickTime Player"*
activate
* if not (document 1 exists) then return beep 1*
* tell application "System Events" to tell process "QuickTime Player"*
* if not ((window 1 whose name ends with "Inspector") exists) then*
* keystroke "i" using {command down}* -- “Show Movie Inspector” menu command
* end if*
* set theInspector to window 1 whose name ends with "Inspector"*
--The frame rate:
* set {X, Y} to position of static text 1 of theInspector whose value is "FPS:"*
* set theFrameRate to value of text area 1 of theInspector whose position is {X + 120, Y}*
--The resolution:
* set {X, Y} to position of static text 1 of theInspector whose value is "Current Size:"*
* set theResolution to value of text area 1 of theInspector whose position is {X + 120, Y}*
--Optional:
* set theFrameRate to theFrameRate as integer*
* set {H, V} to {word 1, word 3} of theResolution*
* set theResolution to {H as integer, V as integer}*
* end tell*
*end tell*
*{theFrameRate, theResolution}*
Read video frame rate and resolution