quicktime player - set playhead position

Hello all,

Does anyone know the code how to set the playhead position on quicktime player (preferred) (or quicktime player 7)

thanks

Hi,

class document of application QuickTime Player has a current time property, the value (real) is the current time in seconds

Well i looked through the dictionary and couldn’t find any play head position or any play manipulation except step forward or backward… using that i made this… anyone have a better solution?


set desiredPosition to 2309 -- in seconds

set stepForwardNum to (desiredPosition / 0.25) as integer

tell application "QuickTime Player"
	tell document 1
		set current_time to current time -- get movie properties		
		step forward by stepForwardNum
		set current_time to current time -- get movie properties		
		
	end tell
end tell




set desiredPosition to 2309 -- in seconds

tell application "QuickTime Player"
	set current time of document 1 to desiredPosition
end tell

even better. thanks greatly appreciate it.