How to open file in some applicationl with AppleScript
The one way is:
but the best seems to be:
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
Comments