Switch the script to Ruby, and at the same time use the new Dialog.menu instead. Changed: U trunk/Bundles/Latex.tmbundle/Commands/Bibliography Completion.plist