For a background application (LSUIElement = 1), what is the most elegant way to make its “preferences” or “configuration” window appear if the user double-clicks the application icon during its launch?
It is assumed that the user cannot access application prefixes from anywhere else (for example, the menu of menu items).
I would suggest that the ideal method would prevent the prefs window from showing on initial startup, but smart enough to show it on subsequent double-clicks on the application icon.
thanks
source share