uliwitness / Stacksmith

An intuitive software erector kit targeted at people new to programming, but with enough potential to stay useful once they've learned, inspired by HyperCard.
http://stacksmith.org
129 stars 13 forks source link

Address book access commands #50

Open uliwitness opened 9 years ago

uliwitness commented 9 years ago

For appointments and calendars. Make looking stuff up similar to the database access support, something like LINQ and the sort command(?).

uliwitness commented 7 years ago

This could probably be implemented very similar to the "screen 1" pseudo object-type. Just keep in mind that the user can refuse to give an app access to the address book, in which case the ABAddressBook singleton on the Mac is nil. We'll want to return an empty address book in that case and set "the result" to an appropriate error message.

If #77 is implemented already, the various address book entries should probably be exposed as a struct whose accessors the scripting engine calls transparently to retrieve properties. That way it'll be more efficient, yet still feel like objects or chunk expressions: "put name of entry 1 of the address book into myFirstFriendsName" or so.