Bare-bones AppleScript implementation - stage 2.