Re: [Pyobjc-dev] Can't activate external app
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-12-08 22:14:50
|
On Dec 8, 2003, at 4:26 PM, Philip Brodd wrote: > I'm trying to launch RealOne Player from my app and send it a URL. If > RealOne is already running, this successfully causes it to play the > given audio stream: > > import RealOne_Player > realplayer = RealOne_Player.RealOne_Player() > realplayer.GetURL( "rtsp://blah/blah.rm" ) > > I can't see how to launch it from my program though. On a wild guess I > tried realplayer.activate(), which gave the error "MacOS.Error: (-600, > 'no eligible process with specified descriptor')". What exactly does this have to do with PyObjC? PyObjC has no wrapper called "RealOne_Player". That looks like a gensuitemodule wrapper or something, you should've specified where it came from. I believe the name for the "launch" event is called run.. so maybe realplayer.run() works? In any case, you may want to try doing this (with PyObjC). It's another approach entirely, but will probably work perfectly fine for the simple use case you describe. from Foundation import NSURL from AppKit import NSWorkspace NSWorkspace.sharedWorkspace().openURL_(NSURL.URLWithString_(u"rtsp:// blah/blah.rm")) -bob |