changed scpt to applescript