dustinrue/ControlPlane — comment on commit 3e9aae962537a45157eb06d7379f136cfc26418e
File:  line 0
By dustinrue:

I am actually exploring other options right now including distributed notifications. I hit a snag with notification center because the "limitedOptions" method is a class method so it doesn't have access to the variables. This is an issue because you are waiting for a notification (a reply from Tedium) that will fire some selector. Unless there is some sort of trick a person can use to get around that I'm not sure if notifications will work. The testing app I created shows that it is very fast though. So unless you're aware of a way to get around the asynchronous nature of notifications I fear it won't be a good solution for this.

I haven't read up on distributed objects yet so I'm not sure if that'll work.

Another option is to use some sort of shared plist settings that CP would simply read directly, and really CP could just directly read Tedium's config file. This would work fine and would even allow for the case where Tedium isn't running as AppleScript will cause it to start.

I'd really like to use AppleScript despite the disdain for it in #macdev. Since I can't figure out how to actually pass a list of items back with AS I simply serialized the data and passed it as a string, then deserialized it. It is such a crappy hack.