more focus loss issue
more focus loss issue
- Subject: more focus loss issue
- From: Kevin Layer <email@hidden>
- Date: Thu, 06 Mar 2014 11:01:06 -0800
I ready the previous thread about focus loss. I downloaded and
modified watch_activations.py, but in my case, it shows this:
Python[27581:1107] activated osascript ((null)) pid:27606 (null)
Python[27581:1107] activated X11 (org.macosforge.xquartz.X11) pid:223 file:///Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin
The thing that steals the focus is "osascript" and I cannot figure
out, for the life of me, where this is coming from. I've killed all
running programs except for X11. I've made sure there are no icons on
the menubar (near the date/time). I've done "ps ax" and make sure
everything I can kill has been killed.
I'm on 10.9.2. XQuartz 2.7.5.
Below is my modified python script.
Any ideas how to track this down? It's driving me mad. Thanks.
Kevin
#!/usr/bin/python
import signal
import sys
def signal_handler(signal, frame):
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGQUIT, signal_handler)
from AppKit import *
class MyObserver(NSObject):
def appActivated_(self, notification):
app = notification.userInfo()["NSWorkspaceApplicationKey"]
NSLog(u"activated %@ (%@) pid:%@ %@",
app.localizedName(),
app.bundleIdentifier(),
app.processIdentifier(),
app.executableURL())
ws = NSWorkspace.sharedWorkspace()
nc = ws.notificationCenter()
ob = MyObserver.new()
nc.addObserver_selector_name_object_(ob, "appActivated:", NSWorkspaceDidActivateApplicationNotification, ws)
NSRunLoop.currentRunLoop().run()
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden