Glocky,(actually, Everybody) you should check out Tasker. One of the greatest apps because it lets you set up triggers with simple AND/IF parameters and really maximizes the functionality of your phone and automates many other features.
You just Plugged in headphones? Music app will open...