Script alert

This maybe need some polishing but it is working for me. I'm sending pull request only to notify you, no need to merge it before other changes.

I'll rebase it to your current master when you will finish with previous merge (now it is rebased to my linux branch)

Also I'm not sure if this will work on Mac or not and if you want to include such feature at all. Let me know what do you think.