use AppleScript version "2.4" -- Yosemite (10.10) or later use scripting additions -- Of course, you can add a choose from list to select the app set appPath to path to application "TextEdit" tell application "Finder" set itemList to selection set oFile to (item 1 of itemList) as alias open oFile using appPath end tell
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
-- Of course, you can add a choose from list to select the app
set appPath to path to application "TextEdit"
tell application "Finder"
set itemList to selection
set oFile to (item 1 of itemList) as alias
open oFile using appPath
end tell
Best Regards,
Jim Underwood
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden