RE: Help to fix script..Anyone?
RE: Help to fix script..Anyone?
- Subject: RE: Help to fix script..Anyone?
- From: "Andrew Lartigue" <email@hidden>
- Date: Mon, 5 Feb 2007 16:59:30 -0500
Yes, the issue is when QTB stops, it is suppose to send email and restart
the broadcasting. All it seems to do is to start the application.
I need it to restart the broadcasting (not just the application) and send
email each time to let me know that there is issue.
It is not sending email nor is it starting the broadcasting. QTB starts,
but it does not run.
Thanks.
A
Ps: I have attached a zipped file with a broadcasting starter.
-----Original Message-----
From: applescript-users-bounces+lartigue=email@hidden
[mailto:applescript-users-bounces+lartigue=email@hidden] On
Behalf Of Stockly, Ed
Sent: Monday, February 05, 2007 2:20 PM
To: 'email@hidden'
Subject: RE: Help to fix script..Anyone?
>>>>How do you run it? As a AS application?
>>>>If so, there is no 'on run' handler, so your script is never executed.
That is not the case. If there is no run handler the script then the top
level of the script (outside any handler) will execute as if it were inside
a run handler.
On a short, simple script like the one here, I probably wouldn't use one
either. If a script contains more than 2 or 3 handlers, then a run handler
is definitely a good idea. Run handlers can help keep your script organized
and tidy, so it may be a good habit to use them, especially on long, complex
scripts, but they are not required.
It looks like the Quicktime Broadcaster app has a fairly complete dictionary
and seems to start and stop broadcasting fairly reliably with your script,
at least on my mac. It also seemed to work when I ran it without the calls
to system events, I'm not sure why those were necessary.
Is the problem sending the message? Or is it also restarting after a
broadcast has stopped?
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
.net
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
Attachment:
BROADCASTER SETUP.zip
Description: Zip compressed data
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden