In the AppleScript Language Guide is says:
Where is that list of all applications registered with the system kept?
In the AppleScript Language Guide is says:
Where is that list of all applications registered with the system kept?
I guess in the LaunchServices Database, but I don’t know where it is on disk
Ahh – thank you. With that hint I found it in ~/Library/Preferences/com.apple.LaunchServices.plist
They’re a bunch Dictionary pairs of bundle IDs and application names, e.g.:
LSHandlerRoleAll = “com.red-sweater.marsedit”;
LSHandlerURLScheme = marsedit;
They correspond to the info this script give you:
tell application "System Events"
set P_running to processes whose visible is true
set tID to {}
repeat with proc in P_running
set end of tID to {name of proc, bundle identifier of proc, creator type of proc}
end repeat
end tell