Apple script what is the best script to write?