Hi,
I am streaming video through quicktime broadcaster 24 hours a day, and sometimes it stops broadcasting randomly or shuts off. I want to write a script that checks to see if it’s broadcasting, and if not, make sure it’s using the right settings and then start again.
I know how to open the settings file and start broadcasting, but I don’t know how to actually find out if it’s currently broadcasting. Does anyone know how I could do this?
Here is the current state of my script:
set user_settings to alias "Macintosh HD:Users:webcast:Desktop:FinalSettings.qtbr"
activate application "QuickTime Broadcaster"
if (exists document 1) then
start document 1 -- here is where I need to see if it's already going, and if not, then open user_settings and start document 1.
-- Ideally, I would also be able to determine if document 1 is using the right settings file.
return "broadcast"
end if
end tell
Thanks a lot for any help you can give!
Model: Mac Mini
Browser: Firefox 2.0.0.3
Operating System: Mac OS X (10.4)