Huddled Masses
The internet home of Joel "Jaykul" Bennett...
Browse: Home / Growl for Windows – From PowerShell

Growl for Windows – From PowerShell

By Joel 'Jaykul' Bennett on 14-Aug-2009

Growl

This is just a quick post (as I promised, recently) to let you all know that I’ve published the first release of my Growl for Windows module for PowerShell over on PoshCode.

I haven’t been able to get callbacks to work, and I spent way too much time playing with them instead of publishing this, or working on remote growls … but nonetheless, it’s sufficient to let you pop up growl notifications from scripts, which you can, of course, customize in Growl itself.

You can add a few additional notice types very simply (you just hard code them in the script, copying lines 19 and 21 — remember you need to use the same notice names each time anyway) ... and then tweak them in Growl to have different display types, or to make some of your notice types sticky, or have them forwarded to your iPhone or whatever.

Here’s the first version of the script:

Note: if you want to use this on PowerShell 1.0, just comment out the [Parameter( lines, and dot-source it, it should work fine. In PowerShell 2.0 you’ll want to load it as a module, because doing so will hide some of those ugly script variables.

Similar Posts:

  • PowerShell Scripting Best Practices: Prefix A
  • RFC: Information in PoshCode Module Manifests
  • Working with multiple versions of PowerShell Modules
  • PowerShell 3 – Finally on the DLR!
  • What Scope Am I In?

Posted in Huddled | Tagged Growl, Growl for Windows, Notifications, Popup, PowerShell, Scripting

« Previous Next »

Lijit Search

Tags

.Net .Net 2008 Scripting Games Automation Bugs Design Development Funny Gadgets GeoShell GUI Huddled Masses Internet licensing Microsoft Modules My Software News Personal PInvoke Pipeline Politics PoshCode PoshConsole PowerBoots PowerShell PowerShell Functions PowerTips Rants Recommender Repository Scripting ShowUI Software Solutions Textile Tips User Group UserInterface WalkThrough WebHosting Windows 7 WordPress WPF Xml

About Huddled Masses

This is web site is dedicated to the musings of Joel Bennett (aka Jaykul) about technology, software, software development, the web, and the world.

Any resemblance of the views expressed and the views of my employer, my terminal, or the view out my window are purely coincidental. The resemblance between them and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader.

P.S.: I occasionally link to things I think are great. When I do, I occasionally find a "referral code" so I can make a little cash. I promise that I don't link to anything just because of that cash (I wouldn't cross the street for the amount of cash those links bring in, never mind write a whole blog post) ... but I do not promise that things I link to will stay great as time passes, nor that you will agree with me about their greatness!

Archives

  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • August 2010

Copyright © 2012 Joel Bennett.

Powered by WordPress and Hybrid.