Then Paul Kim pointed me to his Status Item Tester which does exactly what I wanted. Much easier. Just drag and drop out of Acorn into his window and it does the trick.
Then I remembered.. hey- Acorn has a plugin API, doesn't it? Why yes, I'm pretty sure it does!
10 seconds later, the "Make Dock Icon" plugin was born:
from AppKit import *
ACScriptSuperMenuTitle = None
ACScriptMenuTitle = "Make Dock Icon"
def main(image):
NSApplication.sharedApplication().setApplicationIconImage_(image.NSImage())
return nil
ACScriptSuperMenuTitle = None
ACScriptMenuTitle = "Make Dock Icon"
def main(image):
NSApplication.sharedApplication().setApplicationIconImage_(image.NSImage())
return nil
It really is that easy to write useful plugins for Acorn. Well, at least in this case- useful for developer types like myself. And there's a handful of examples on the Acorn wiki if you're interested in making your own.