I want to create an AppleScript that gets the Finder selection and displays a list of applications that are capable of opening it.
In other words, is there any way to get the list of apps that appears when you use Finder's "Open With >" contextual submenu?
Best Answer
One option would be to use AllApplications in a shell script:
You could also use System Events to get the applications from the Open With menu:
I didn't really test the scripts, but they're probably affected by rdar://9406282: Finder scripting selection may refer to bogus value not correlated with UI.
Related questions at Super User: