Get Mail.app to send iMessage notification for certain rules

Hi, I would like to get Mail.app to send a notification to my phone, e.g. via iMessage (or Messages as it’s now called), for emails that match certain criteria.

Apple says scripts can be attached to Mail rules https://support.apple.com/kb/PH22262?locale=en_US&viewlocale=en_US.

I found this old example from 2013, seems from reading the comments though that it’s broken now for newer OS X
http://www.littlebluemonkey.com/blog/applescript-to-send-imessage-as-email-notification

Any suggestions please on a script that could be triggered by a Mail rule, that would send an iMessage to myself?

Thanks

Model: Macbook Pro
Browser: Safari 603.2.4
Operating System: Mac OS X (10.10)

Thanks to Joe Kissell, (author of “Take Control of Automating Your Mac”) who replied to my tweet request about this; he tried the old Little Blue Monkey script and turns out it works perfectly.

Even better, there’s no need to use a different iMessage account, i.e. the send and receive accounts can both be the same.