Added cache option for applescript