basic structure of which_apple script laid out