DTool for testing how you need to invoke TransformProcessType() in different places for a process to be properly transformed to foreground type, and show its menu immediately, in Mac OS X 10.9 versus earlier OS X versions. For more info see blog post: http://www.sheepsystems.com/developers_blog/TPT-show-menu.html.