set the_application to path to application "TextEdit"
tell application "Finder"
open the_file using the_application
end tell
but the best seems to be:
set f to choose file of type "TEXT"
tell application "Finder"
set a to application file id "com.apple.TextEdit"
open f using a
end tell
No comments:
Post a Comment