Hi!
I like to stop a movie at a certain point.
With my script the movie plays but does not stop.
Can anybody help me?
tell application "QuickTime Player"
tell document 1
set pointX to current time
set current time to 500
if current time is equal to 1000 then
pause
else
play
end if
end tell
end tell
I tried also equals, greater than etc. Nothing seems to work.
Thank you for your help.
Rainer
Hi Rainer,
it can’t work.
You set the current time to 500 and compare the value once with 1000.
It will never be = 1000 because the scripts finishes
You need a repeat loop like
tell application "QuickTime Player"
tell document 1
play
set pointX to current time
set current time to 500
repeat
if current time > 1000 then exit repeat
delay 0.5
end repeat
pause
end tell
end tell
Hi Stefan!
Your script is working fine, thanks for your help!
Best wishes
Rainer