On 4 Feb, 2009, at 23:26, Bill Janssen wrote:
The right ways to fix the issue you're running into with appscript are1) Wrap your script into an .app bundle that includes the LSUIElement setting (because appeartly you are writing an application that is an agent-style application) 2) Research why appscript causes the icon to appear on the dock. As has noted it should be possible to avoid that because the ScriptingBridge framework doesn't have this problem. The second option would be the most useful for the community, but is way harder than the first option.Yes, both of those are good ideas. But it's not just appscript; I'mdoing something else in a different program (that doesn't use appscript)that also causes the rocket-in-the-dock problem. This one is particularly irritating, because it's a real daemon, and can't always get through to the dock.
Can you reproduce the issue in the second problem with a simple script? If so, please file a bug in the python bugtracker and assign it to me.
The dock icon should mean you're calling an API that requires access to the window server. Does the daemon program work when you start it without begin logged on to the console (that is, log in using an SSH session without being logged on on the console)? If that doesn't work, it shouldn't work either with and without the LSUIElement key.
Ronald
Bill
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig