Put back 2nd part of Apple script.