--- In [email protected], "Sheri" <sheri...@...> wrote:

> The other script that doesn't work for me is the Quicktime one, because 
> obj.play is an invalid method (?). I looked at that script and found some 
> comments about a alternate implementation that use "*control ie 
> file:///.../test.mov", and that approach does work for me (and the movie 
> autoplays, no need to click movie controls as suggested by the script 
> comments).

At some point in 7.x series, Apple seems to have stopped support for 
Play method on the "QuickTime.QuickTime" object.  Seems that overlapped intro 
of the "quickTimePlayerLib.quickTimePlayerApp" object.

This works on recentish versions of QT, but only if QT already running: you 
have to have demo.mov in same folder (should be in last com distro, if not 
rename test.mov to demo.mov.

local qtPlayerApp = ;;+ 
com.create_object("quickTimePlayerLib.quickTimePlayerApp")
local qtPlayer = qtPlayerApp.Players(1)
local sMov = scriptfolder ++ ?"/demo.mov"
qtPlayer.OpenURL(sMov)
local mov = qtPlayer.QTControl.Movie
mov.play
;mov.Tracks.Count
;mov.Tracks(i).Format
quit

Need to figurer out how to get it to work when the create_object call causes QT 
to launch.



Reply via email to