(* Simple open file example using an embeded shell script. *) do shell script " open -a TextEdit ~/Documents/file.txt "
open open-file-sh in the applescript editor