Add OS X focusing script, improve sample