Modularized applescripts and added limit to click_matches