Post

Replies

Boosts

Views

Activity

Reply to Access to the choices global variable in installation-check script?
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:
Apr ’21
Reply to How can my app bring another app to the foreground when it's not currently the frontmost app?
Some corrections (that I unfortunately cannot edit into my original post!) NSRunningApplication.activateWithOptions isn't deprecated, but the option NSApplicationActivateIgnoringOtherApps is. Instead of NSRunningApplication.yieldActivationToApplication I meant NSApplication.yieldActivationToApplication. Instead of NSRunningApplication.activate I meant NSRunningApplication.activateFromApplication. These corrections aside, I'm still looking for an answer to my original main question.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’25