Applescript->Quicktime 7 and .qtz problems

mron's picture

here's a little script to open a quartz composition in quicktime, then get some info....

tell application "QuickTime Player 7" open "/Users/me/Library/Compositions/test.qtz" as POSIX file delay 3 tell document 1 set n to name end tell end tell

-- here is the error message ....

tell application "QuickTime Player 7" open file "Mac:Users:me:Library:Compositions:test.qtz" --> document "test" get name of document 1 --> error number -1728 from name of document 1 Result: error "QuickTime Player 7 got an error: Can’t get name of document 1." number -1728 from name of document 1

if i open a movie, i can get the name, bounds etc. but not a .qtz file.

any idea why?

thanks, ron