It's pretty egregious that Apple would have a basic Javascript syntax error on their documentation page like that.
The correct syntax is: title = choices['myapp'].title;
Another quick note: if you print one of the values in choices, e.g. system.log(choices['myapp']); it will print (null) to the installer log, giving you the false impression that every one of these keys has a null value. This is not the case, and you can still access the values' properties, such as title, visible, selected, etc.
Topic:
Safari & Web
SubTopic:
General
Tags: