(* Simple open file example. *) set myFile to POSIX file "/Users/yourUser/Documents/file.txt" tell application "TextEdit" to open myFile
open open-file in the applescript editor