Hi, I'm trying to launch an app in the background, as follows:
ws = NSWorkspace.sharedWorkspace() ws.launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier_(bundleID, NSWorkspaceLaunchAndHide | NSWorkspaceLaunchWithoutActivation, None) I've tried simplifying this and changing it, for example: ws.launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier_(u'com.apple.Finder', 0, NSAppleEventDescriptor.nullDescriptor()) But no matter what I do, I get an IndexError: NSRangeException - *** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0) This occurs inside the method; that's about all I can tell from here: #0 0x92991008 in -[NSException raise] () #1 0x92990e5c in +[NSException raise:format:] () #2 0x92954050 in -[NSCFArray objectAtIndex:] () #3 0x93b739f8 in -[NSWorkspace launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:] () #4 0x002be654 in ffi_call_DARWIN () #5 0x002be248 in ffi_call () #6 0x002c840c in PyObjCFFI_Caller () #7 0x002dc5c0 in PyObjCSelector_GetFlags () #8 0x0040d5a4 in PyObject_Call (func=0x12278e0, arg=0x90aae1a0, kw=0x54) at /Volumes/Data/Users/ronald/Universal/python24-fat/Objects/abstract.c:1795 The exception is raised after the method has successfully done its work, so if I catch it and ignore it, everything works, but that doesn't exactly fill me with feelings of happiness. The same method invocation works fine from Objective-C. What's going on? I'm using Python 2.4.3 Universal on a PPC 10.4.6 machine, and PyObjC 1.3.7. Thanks, -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig