Implement NSDockTilePlugin in Python

How does one implement a

NSDockTilePlugin
in Python?

This is what I did:


In

Info.plist
, I set
NSDockTilePlugIn
to
@executable_path/../Resources/AppBadge.docktileplugin
, which is a Python executable.


This executable reads:


#!/usr/bin/python

# -*- coding: utf-8 -*-

from AppKit import NSDockTilePlugIn

class AppBadge(NSDockTilePlugIn):

     def setDockTile_(self, dockTile):

          dockTile.setBadgeLabel_(str(3))


There is no Python example on the internet, and since I'm not coding in Objective C or XCode, I have no idea what to do.

Thank you!