version 0.1
Requires Mac OS X 10.4 or higher

HAMSoft Engineering allows free use of this code and/or software in its "as is" condition. HAMSoft Engineering disclaims any liability of any kind for any damages whatsoever resulting from the use of this code and/or software. If you find it useful please consider making a donation to help HAMSoft Engineering stay in business.

download the compiled command line tool
download the source code project

Use this command line tool to get a list of all applications that can open a file from Launch Services.

Usage: AllApplications -path path/to/file

Example usage of the tool with applescript:
Open this Script in your Editor

set allApplicationsPath to (path to home folder as text) & "UnixBins:AllApplications"

set filePath to (path to desktop as text) & "test.txt"

do shell script quoted form of POSIX path of allApplicationsPath & " -path " & quoted form of POSIX path of filePath