Various applescript utilities