AppleScript for use with Hazel on OSX