Reworked Applescripts