Re: Running a stay open applet in OS X... :-(
Re: Running a stay open applet in OS X... :-(
- Subject: Re: Running a stay open applet in OS X... :-(
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 21 Apr 2002 14:18:43 -0700
On 4/21/02 2:02 PM, "Mr Tea" <email@hidden> wrote:
>
This from Paul Berkowitz - dated 21/4/02 07.20 pm:
>
>
> Were you adding some behavior that brought it to the front?
>
>
No. In fact, it looks like a bug.
>
>
It's only when the script is run as part of an Entourage schedule set to run
>
at startup that it goes wrong. Turning off the run at startup option, then
>
running the schedule from the Tools menu starts up the mail checker applet
>
and runs it without bringing it to the front. Try it, and see if you get the
>
same result.
>
>
Mr Tea
Ah. That's another issue. It's actually an OS thing, I believe. If you're
running it At Startup, it probably sends out the call to the applet before
the main window comes up and other initialization procedures. What happens
if you first just
tell application "Microsoft Entourage" to activate
Don't put that in an "ignoring" block, so the script will wait until
Entourage is up and running before it moves on to calling your applet. If
necessary (I shouldn't think it would be), even:
tell application "Microsoft Entourage"
activate
open main window
set done to false
repeat until done
try
get window 1
end try
end repeat
end tell
But I really don't think you'll need all that.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.