Quickies

[categories] [index] [all (527)] [latest]

Python
  1. import objc
    
    objc.loadBundle("InstantMessage", globals(),
                    bundle_path=objc.pathForFramework(u'/System/Library/Frameworks/InstantMessage.framework'))
    
    service = IMService.serviceWithName_('AIM')
    print service.peopleWithScreenName_('pikswiss')
    

    Since Mac OS X 10.5 :

    from AddressBook import *
    
    book = ABAddressBook.sharedAddressBook()
    print book.me()