Tatsuhiko Miyagawa's Blog

Dress up your script OS X suit

August 25, 2008

CocoaDialogScreenSnapz001CocoaDialogScreenSnapz001SafariScreenSnapz005SafariScreenSnapz005I hacked my tiny fkall script (that kills and restarts apps using more memories than specified) to use CocoaDialog and Growl to do OSX native dialog and growl notification. They’re wrapped in a sub to gracefully fallback to STDERR based dialog if they’re not installed. Tiny modification to the code just turns my few lines of perl script into something that looks like real OSX app. Neat.