EyeTV/QuickTime frames

I would like to press function-key when watching EyeTV recording and it grabs current frame number or current location in seconds in recording and then writes this information to log.

Only thing missing is how to grab frame number or location. This is propably not possible in current EyeTV.

This would be kind of bookmarking locations in video.

I tired get same information from QuickTime Player too but these fails:

tell application "QuickTime Player"
	set testing to time of movie
end tell

tell application "QuickTime Player"
	set testing to frame of movie
end tell

tell application "QuickTime Player"
	set testing to index of movie
end tell

Hi cirno,

I don’t know, which unit it uses, but you can determine the current playback position with:

tell application "EyeTV"
	set testing to playback position of recording 1
end tell

or

tell application "EyeTV"
	set {theLength, currentPosition} to actual duration of recording 1
end tell

Thanks.

Since those 2 examples gives position of recording 1, i need to some how get what is recording number of currently playing recording.

try this

tell application "EyeTV"
	try
		set currentRecording to (get recording (name of player_window 1)) -- a recording is playing
		set {theLength, currentPosition} to {item 1 of (get actual duration of currentRecording), current time}
	on error
		set {theChannel, currentPosition} to {current channel, current time} -- live TV is playing
	end try
end tell