Hello List
My app has the following structure:
1. A cocoa client GUI. 2. A foundation tool daemon. 3. A worker task.
The foundation daemon is normally launched by the client GUI. The daemon subsequently generates a number of worker tasks. The worker tasks execute AppleScripts using the OSA (essentially each task acts as a wrapper process for an AppleScript). The daemon and the worker task both reside in the client's main bundle.
At present each worker task produces an icon in the dock whenever it runs an AppleScript. This is something I would wish to optionally prevent.
Why it does this is something that I I don't fully (or even partially) understand. The icon seems to appear whenever the OSA componentInstance is allocated.
When calling OSAExecute I pass kOSAModeNeverInteract. In general the executed AppleScripts do not require user interaction.
I know that LSBackGroundOnly and LSUIElement can be placed into the application info.plist but that won't help me in this case (I think).
Thanks
Jonathan
|