Well I tried using this:
on startPlaying
--put your commands to alias the file here and then to play it
send "checkFinished" to me in 5 seconds
end startPlaying
on checkFinished
if mciSendString("status myAudio") is not "stopped" then
send "checkFinished" to me in 5 seconds
exit checkFinished
end if
--its finished, insert script to play it again here
send "checkFinished" to me in 5 seconds
end checkFinished
But it didn't work the way I needed it to. In fact, when I ran it, the
mcisendstring sent back that it was missing parameters. Is there
something special that you need to send to the mci? It's specifically
on this line:
if mciSendString("status myAudio") is not "stopped" then
Now, I've tried just using this line to check if the status of myAudio
is stopped, but it doesn't seem to know what I'm talking about. Maybe
it just doesn't know what "stopped" is. Is there some other way to
check myAudio's status?
--Andrew