There's various threads on the forum. This one doesn't solve the exact same problem, but gets you 90% of the way there: