added an applescript helper