It's really a gross violation of the separation of the applications, but I agree with @flowerhack that it's the way to do it (very fragile).