I'm using a stay-open AppleScript applet that tells me about new mail when
Entourage X is running in the background. That's the idea, anyway.

The script tests whether or not Entourage is frontmost by asking the Finder
to get the creator type of the frontmost process and - in theory - only
doing its stuff if the result is not "OPIM". Often, however, it ignores this
stipulation for no obvious reason - like just now while I'm typing this
message.

Why? Is Entourage not always frontmost when it appears to be so? I wondered
if Microsoft, in its cheeky, loveable way, was slipping additional processes
into the mix, and found the 'Microsoft Database Daemon' lurking hard by. But
I can't find any evidence that suggests it's muscling its way to the front
and confusing my applet.

Maybe it's just me that's confused. I've appended the relevant part of the
applet - perhaps someone can suggest a more robust way of checking whether
or not Entourage is frontmost, or even just a way that works.


tell application "Finder" to set activeApp to creator type of (every
application process whose frontmost is true)

if activeApp is not "OPIM" then my AnnounceMail()


Thanks

Mr Tea
-- 



-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to