If I run this script:
tell application id "com.apple.QuickTimePlayerX" activate set frontDoc to document of (window 1) properties of frontDoc end tell
I get this result, none of these properties are in the dictionary. { data size:1300686, audio volume:1.0, modified:false, current audio compression:missing value, name:"FILE0115.MOV", current microphone:missing value, output muted:false, duration:4.537866666667, current movie compression:missing value, current screen compression:missing value, data rate:272236, current camera:missing value, presenting:false, playing:false, class:document, file:file "Macintosh HD:Users:edstockly: Items from Desktop:QuickTime Movies:FILE0115.MOV", natural dimensions:{ 720, 480 }, looping:false, time:0.0, rate:0.0 }
In Smile, your script yields ...
{class:document, «class dsiz»:2713600, «class volu»:1.0, modified:false, «class apst»:missing value, name:"Blue Skies", «class cura»:missing value, output muted:false, duration:112.953469387755, «class mpst»:missing value, «class spst»:missing value, «class ddra»:0, «class curv»:missing value, «class pres»:false, «class play»:false, file:file "Work_Files:Music:Benny Goodman:Benny Goodman - Blue Skies.mp3", «class ndim»:{0, 0}, «class loop»:false, time:0.0, «class rate»:0.0}
which is the essentially the same as your result, but Smile shows the dictionary as ...
document n [see also QuickTime Player Suite] : A document. elements properties name text, r/o : Its name. modified boolean, r/o : Has it been modified since the last save? file file, r/o : Its location on disk, if it has one. responds to , , .
In AppleScript Editor, I get your results AND it does agree with the dictionary.
I have also verified that QuickTime Player (10.0) = com.apple.QuickTimePlayerX, so we are dealing with the same application.
|