- I was at the Plone Conference '07
- I was at this year's Snow Sprint
Other than that, I've started (again) to work for zest to help paying bills.
Jesses! Everyone needs a blog.
seletz@yeti:~/develop/python/pyskype/test $python skypeapi-test-osx.py
2006-10-25 01:05:55.934 Python[14094] running event loop
2006-10-25 01:05:56.935 Python[14094] connecting to skype
2006-10-25 01:05:56.941 Python[14094] waiting ....
2006-10-25 01:06:00.547 Python[14094] skypeAttachResponse: 1
2006-10-25 01:06:00.576 Python[14094] skypeNotificationReceived: CONNSTATUS ONLINE
2006-10-25 01:06:00.578 Python[14094] skypeNotificationReceived: CURRENTUSERHANDLE seletz29
2006-10-25 01:06:00.578 Python[14094] skypeNotificationReceived: USERSTATUS ONLINE
2006-10-25 01:06:06.942 Python[14094] sending
2006-10-25 01:06:06.942 Python[14094] got answer: None
2006-10-25 01:06:06.943 Python[14094] skypeNotificationReceived: PROTOCOL 1
import objc
from Foundation import *
objc.loadBundle( "SkypeAPI", globals(),
bundle_path=objc.pathForFramework( \
"~/Library/Frameworks/Skype.framework" ) )
#objc.setSignatureForSelector( "SkypeAPI",
# "sendSkypeCommand:", "v@N^@:@" )
SkypeAPIDelegate = objc.protocolNamed( "SkypeAPIDelegate" )
class Delegate(NSObject, SkypeAPIDelegate):
def init(self, app_name):
self = super( Delegate, self).init()
if self is None:
return None
self._appname = app_name
return self
def clientApplicationName( self ):
return self._appname
def skypeAttachResponse( self, code ):
NSLog( "skypeAttachResponse: %d" % ( code ) )
def skypeNotificationReceived( self, nsstring ):
NSLog( "skypeNotificationReceivest: %s" % ( nsstring ) )
def skypeBecameAvailable( self, notification ):
NSLog( "skypeBecameAvailable: %s" % ( notification ) )
def skypeBecameUnavailable( self, notification ):
NSLog( "skypeBecameUnavailable: %s" % ( notification ) )
def do_connect():
delegate = Delegate.alloc().init( "testapp" )
NSLog( "connecting to skype" )
SkypeAPI.setSkypeDelegate_( delegate )
SkypeAPI.connect()
NSLog( "sending" )
SkypeAPI.sendSkypeCommand_( u"PROTOCOL 1" )
def main():
import sys
from PyObjCTools import AppHelper
NSLog( "running event loop" )
AppHelper.callLater( 5, do_connect )
AppHelper.runConsoleEventLoop( installInterrupt=True )
if __name__ == "__main__":
main()
# vim: set ts=4 sw=4 expandtab :