updated for mavericks, adding toggle script for an alfred extension