I was mistaken, I can get the path to the original file in Quicktime with "get original file of document 1"
However, this throws an "out of bounds" error:
tell application id "com.apple.quicktimeplayer" activate set original_file to get original file of document 1 set posix_file to quoted form of POSIX path of original_file set anNSURL to current application's NSURL's fileURLWithPath:posix_file set theAsset to current application's AVURLAsset's URLAssetWithURL:myURL options:(missing value) set theTrack to (theAsset's tracksWithMediaType:(current application's AVMediaTypeVideo))'s objectAtIndex:0 set theFrameRate to theTrack's nominalFrameRate() set theSize to theTrack's naturalSize() return {theFrameRate, width of theSize, height of theSize}
Jim Weisbin | C.T.O. | human | 138 Fifth Avenue | 3rd Floor | New York, NY | 10011 | (212) 352-0211 | (917) 375-2272 | Los Angeles Office | 2046 Broadway | Santa Monica, CA | 90404 | (310) 264-0211 telephone | www.humanworldwide.com Click here to view our online reel
|