RE: Help to fix script..Anyone?
RE: Help to fix script..Anyone?
- Subject: RE: Help to fix script..Anyone?
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 5 Feb 2007 11:19:39 -0800
>>>>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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden