setScriptDescription('add special mac stuff. This is used because classes are used which only exist on Macs') from com.apple.mrj import MRJAboutHandler,MRJApplicationUtils #from com.apple.mrj import MacOSXController from org.autoplot import AppManager class MyMRJAboutHandler(MRJAboutHandler): def handleAbout(evt): getApplication().about() class MyMRJQuitHandler(MRJAboutHandler): def handleQuit(evt): AppManager.getInstance().quit() MRJApplicationUtils.registerAboutHandler(MyMRJAboutHandler())