a few applescripts