title: Basic cocoa application using dock in Python, but not Xcode and all that extras
body: <p>It seems that if I want to create a very basic Cocoa application with a dock icon and the like, I would <a href="http://developer.apple.com/cocoa/pyobjc.html" rel="nofollow noreferrer">have to use</a> Xcode and the GUI builder (w/ <strong>PyObjC</strong>).</p>
  
  <p>The application I am intending to write is largely concerned with algorithms and basic IO - and thus, not mostly related to Apple specific stuff.</p>
  
  <p>Basically the application is supposed to run periodically (say, every 3 minutes) .. pull some information via AppleScript and write HTML files to a particular directory. I would like to add a Dock icon for this application .. mainly to showing the "status" of the process (for example, if there is an error .. the dock icon would have a red flag on it). Another advantage of the dock icon is that I can make it run on startup.</p>
  
  <p>Additional bonus for defining the dock right-click menu in a simple way (eg: using Python lists of callables).</p>
  
  <p>Can I achieve this without using Xcode or GUI builders but simply using Emacs and Python?</p>