![]() ![]() The remaining half was setting up the delegate (callback handler) class. I was having major trouble with loading the Skype framework bundle and accessing the methods, but this helped me out. Some kind soul actually posted a snippet about Skype and PyObjC on Skype DevZone Code Snippets page. ![]() Just pull the source and run the following that builds the custom binary installer for you and runs it right away.Īfter installation, it was time to code it up. I was preparing myself for major trouble but there was an easier way. I have a modified Python installation, and the binary puked on this and said I need “system Python”. There are really only two things here – get PyObjC set up, and run the script. As it says, it’s cool for doing Dashboard widgets so you could imagine Dashboard widgets that do fun things around Skype, and perhaps if you’re considering writing web/desktop apps with something like the newly released Apollo, then the JavaScript beidge might be helpful.įor now, though, let’s stick with Python and PyObjC. Maybe I’ll one day take a look into this JavaScript one. Apple has offered its Java bridge since Mac OS X 10.0, and Mac OS X Tiger 10.4 rolled out a JavaScript bridge which allows Dashboard Widgets to communicate with Objective-C objects. PyObjC is just one of many Cocoa bridges. There seem to be other fun ways of accessing ObjC classes these days. ![]() Or you may want to collect/analyze/archive data you get from Skype or whatever. ![]() One application could be that you want to do another bridge with this and have Python sitting, say, on a read/write socket to where you can connect with yet further apps to talk with the Skype API. You may want to do this for a variety of scripting purposes, as Python is gaining traction as a cool clean scripting language and comes bundled with OS X. So it lets you access the rich class API of Mac OS X from Python. PyObjC is, as it says, “The Python Objective-C Bridge”. Someone asked me, “How do you talk with Skype API on Mac OS X from Python via PyObjC”? Sounded like my kind of thing to take a look :) Interfacing with Skype from Python via PyObjC ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |