I am not sure there's a single way across all OSX releases at a glance, I'm happy to do this as a patch post 1.3.1.