Quicktime 7 broke my scripts :-(>>>

Some scripts that work very well in QT Pro 6.x do not work on QT Pro 7.x.

Most of them have to do with resizing and repositioning windows. Has anyone else found this to be true?

Sample Script 1:

tell application "QuickTime Player"
	set the dimensions of movie 1 to {640, 480}
end tell
  • in QT6 the video and window will resize correctly
  • in QT7 the video within the window will resize until you click or interact with it, at which point it will return to it’s original size

Sample Script 2:

tell application "QuickTime Player"
	set the position of window 1 of movie 1 to {300, 300}
end tell

  • QT6 repositions the window
  • QT7 returns the following error message:
    AppleScript Error:
    QuickTime Player got an error: Can’t make position of window 1 of movie 1 into type reference.

Grant

I ran into the same problem, so I’m hoping to find a solution. I’ve written an applescript that imports an HREF track into a movie. This worked great prior to upgrading to Tiger and QT 7. Now I get an error when it reaches the part of the script that deals with the movie’s duration:

set mainDuration to the duration

I always get an error that says “Can’t make duration into type reference”.

What’s going on here??? I really need this script to work.