[Adium-devl] [15911]: Uniqueified applescriptrunners

Evan Schoenberg evan.s at dreskin.net
Sun Apr 30 21:16:48 UTC 2006


On Apr 30, 2006, at 5:06 PM, Peter Hosey wrote:

> On Apr 30, 2006, at 08:09:07, Evan Schoenberg wrote:
>> When Adium loads, it posts  
>> @"AdiumApplescriptRunner_RespondIfReady" to the NSDNC; if an  
>> applescript runner exists, it'll reply with  
>> AdiumApplescriptRunner_IsReady. That way the new Adium will know  
>> it doesn't need to post another.  When the applescript runner  
>> exits, it posts AdiumApplescriptRunner_DidQuit.  Any still-running  
>> Adium will therefore know that on its next invocation it needs to  
>> exec its own copy.
>
> But if multiple Adiums are running, they will each run their own AR.
I don't believe so.

Adium #2 wants to use an AR.  It posts RespondIfReady and receives  
IsReady.  It therefore doesn't launch its own.
At some point in the future, Adium #1 quits, and its AR quits with  
it.  That AR posts DidQuit.  Adium #2 receives this, so it knows that  
if at some point in the future it wants to run an applescript, it  
will need to launch an AR.

> BTW, macrulez at softhome.net is dead.
*nod* Discovered that  the bounce way.  Address book updated, thanks.

-Evan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20060430/21331c02/attachment.sig>


More information about the devel mailing list