Launch an app or something with Java. I think it would work with scrips as well.