On 8 Jan 2016, at 2:11 AM, Chris Page <email@hidden> wrote:
On Dec 14, 2015, at 2:35 PM, Shane Stanley < email@hidden> wrote:
log (event info for event anEvent) log (event identifier for event anEvent) log (event attendees for event anEvent) log (event recurrence for event anEvent)
Why are these events rather than properties?
The terminology was added as an after-thought, and I didn't see an obvious way to make them properties at that stage. In fact, I still don't. The code's all there; I'd welcome any suggestions. It is a goal for Script Libraries to support interfaces that follow the recommended scripting interface guidelines for applications when possible, which means using properties and elements rather than lots of library specific events.
And a laudable aim that sounds -- but I don't think it's realistic, at least at this stage. If you guys can't provide one sample library showing how you think it should be done, it's unreasonable for you to expect us to be able to read minds. (It's ironic that this particular library only exists because the nicely-formed scripting interface for an app performs so badly.)
I've said this before off-list, but let me say it again. You guys too often seem to understand who you're talking to. The ASLG now says:
I invite people on this list to click on the link and tell me it all makes sense to them. If you can't get detailed documentation aimed at an appropriate level, at least provide samples people can learn from.
But FWIW, I've more or less decided to eschew all but a minimum of terminology in libraries I write. It takes up too much time, and when it;s finally written it's too hard to even read (radar #24086405). I just don't think they're a value proposition in most cases. It's interesting that the only library out of Cupertino so far also contains (more or less) no terminology.
Did you encounter a limitation in AppleScript's library support?
I'm not sure how to answer that. It seems that most of the limitations are inherited from AppleScript (eg, inability to use a Cocoa object as direct parameter).
|