How waiting end of a video before an other action (open a picture)

as I understood, you want the macro to Wait until video has finished playing in Quicktime, is that correct? it'd be easier if you'd share what you got so far.

there are some posts about detecting if QuickTime is playing, and/or getting the length of media, depending on what you need: