Sha256: d7d4376ea11a5380125289df6f127e578b28925edd4d571c82ec2396fee18833

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

-- from http://stackoverflow.com/questions/3444326/list-all-applications-output-as-text-file
-- seems to work, but takes 3.2s to run for some reason, which is an issue
property pLSRegisterPath : "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister"

set theAppPaths to every paragraph of (do shell script pLSRegisterPath & " -dump | grep --after-context 1 \"^bundle\" | grep --only-matching \"/.*\\.app\"")

set theNames to {}
repeat with thePath in theAppPaths
    try
        copy displayed name of (info for (thePath as POSIX file)) to end of theNames
    end try
end repeat
-- choose from list theNames
return theNames

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nrser-rash-0.2.3 dev/scratch/apps.AppleScript
nrser-rash-0.2.2 dev/scratch/apps.AppleScript
nrser-rash-0.2.1 dev/scratch/apps.AppleScript
nrser-rash-0.2.0 dev/scratch/apps.AppleScript