Skip to content

Instantly share code, notes, and snippets.

@jhyland87
Created March 8, 2018 21:03
Show Gist options
  • Save jhyland87/1a8bedbe0c8ec0caaf48994432e5d42b to your computer and use it in GitHub Desktop.
Save jhyland87/1a8bedbe0c8ec0caaf48994432e5d42b to your computer and use it in GitHub Desktop.
showing all populated values of google via lsappinfo
$ lsappinfo info com.google.Chrome -only allowedtobecomefrontmost,applicationTypeToRestore,applicationWasTerminatedByTAL,applicationtype,arch,asn,bundleid,bundlelastcomponent,bundlename,bundlenamelc,bundlepath,changecount,creator,debuglevel,displayname,execpath,executablepath,filecreator,filename,filetype,hidden,isconnectedtowindowserver,isready,isregistered,isstopped,isthrottled,launchedForPersistence,launchedinquarantine,name,parentasn,pid,presentationmode,presentationoptions,psn,recordingAppleEvents,session,shellpath,supressRelaunch,version,kCFBundleNameKey,kLSASNKey,kLSASNToBringForwardAtNextApplicationExitKey,kLSAllowedToBecomeFrontmostKey,kLSApplicationBackgroundOnlyTypeKey,kLSApplicationBackgroundPriorityKey,kLSApplicationCountKey,kLSApplicationDesiresAttentionKey,,kLSApplicationForegroundPriorityKey,kLSApplicationForegroundTypeKey,kLSApplicationHasRegisteredKey,kLSApplicationHasSignalledItIsReadyKey,kLSApplicationInStoppedStateKey,kLSApplicationInThrottledStateAfterLaunchKey,kLSApplicationInformationSeedKey,kLSApplicationIsHiddenKey,kLSApplicationListSeedKey,kLSApplicationReadyToBeFrontableKey,kLSApplicationTypeKey,kLSApplicationTypeToRestoreKey,kLSApplicationUIElementTypeKey,kLSApplicationVersionKey,kLSApplicationWasTerminatedByTALKey,kLSApplicationWouldBeTerminatedByTALKey,kLSArchitectureKey,kLSBundleIdentifierLowerCaseKey,kLSBundlePathDeviceIDKey,kLSBundlePathINodeKey,kLSBundlePathKey,kLSCheckInTimeKey,kLSDebugLevelKey,kLSDisplayNameKey,kLSExecutableFormatCFMKey,kLSExecutableFormatKey,kLSExecutableFormatMachOKey,kLSExecutableFormatPoundBangKey,kLSExecutablePathDeviceIDKey,kLSExecutablePathINodeKey,kLSExecutablePathKey,kLSExitStatusKey,kLSFileCreatorKey,kLSFileTypeKey,kLSFlavorKey,kLSFrontApplicationSeedKey,kLSHiddenApplicationCountKey,kLSLaunchTimeKey,kLSLaunchedByLaunchServicesKey,kLSLaunchedByLaunchServicesThruForkExecKey,kLSLaunchedByLaunchServicesThruLaunchDKey,kLSLaunchedByLaunchServicesThruSessionLauncherKey,kLSLaunchedInQuarantineKey,kLSMenuBarOwnerApplicationSeedKey,kLSModifierLaunchedForPersistenceKey,kLSModifierRefConKey,kLSNotifyBecameFrontmostAnotherLaunchKey,kLSNotifyBecameFrontmostFirstActivationKey,kLSNotifyLaunchRequestLaunchModifiersKey,kLSOriginalExecutablePathDeviceIDKey,kLSOriginalExecutablePathINodeKey,kLSOriginalExecutablePathKey,kLSOriginalPIDKey,kLSPIDKey,kLSParentASNKey,kLSParentASNWasInferredKey,kLSPersistenceSuppressRelaunchAtLoginKey,kLSPreviousASNKey,kLSPreviousPresentationModeKey,kLSPreviousValueKey,kLSRecordingAppleEventsKey,kLSRequiresCarbonKey,kLSSessionIDKey,kLSShellExecutablePathKey,kLSUIDsInSessionKey,kLSUIPresentationModeAllHiddenValue,kLSUIPresentationModeAllSuppressedValue,kLSUIPresentationModeContentHiddenValue,kLSUIPresentationModeContentSuppressedValue,kLSUIPresentationModeKey,kLSUIPresentationModeNormalValue,kLSUIPresentationOptionsKey,kLSUnhiddenApplicationCountKey,kLSVisibleApplicationCountKey,kLSVisibleApplicationListSeedKey,kLSWantsToComeForwardAtRegistrationTimeKey,launchedThrottled | awk -F'=' '$2 !~ /NULL/' | column -s'=' -t | tr -d '"'
CanBecomeFrontmost true
ApplicationType Foreground
LSArchitecture x86_64
LSASN ASN:0x0-0x113113:
CFBundleIdentifier com.google.Chrome
CFBundleName Chrome
BundleIdentifierLowerCase com.google.chrome
LSBundlePath /Applications/Google Chrome.app
ChangeCount 533
CFBundleSignature rimZ
LSDisplayName Google Chrome
CFBundleExecutablePath /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
CFBundleExecutablePath /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
CFBundleSignature rimZ
LSExecutableFilenameLowerCaseKey google chrome
CFBundlePackageType APPL
Hidden false
LSApplicationReadyToBeFrontableKey true
LSApplicationHasSignalledItIsReady true
LSApplicationHasRegistered true
LSLaunchedInQuarantine true
LSDisplayName Google Chrome
LSParentASN ASN:0x0-0x14014:
pid 96843
UIPresentationMode Normal
UIPresentationOptions 0
LSASN ASN:0x0-0x113113:
CFBundleVersion 3282.186
CFBundleName Chrome
LSASN ASN:0x0-0x113113:
CanBecomeFrontmost true
LSApplicationHasRegistered true
LSApplicationHasSignalledItIsReady true
ChangeCount 533
Hidden false
LSApplicationReadyToBeFrontableKey true
ApplicationType Foreground
CFBundleVersion 3282.186
LSApplicationWouldBeTerminatedByTALKey false
LSArchitecture x86_64
BundleIdentifierLowerCase com.google.chrome
LSBundlePathDeviceID 16777220
LSBundlePathINode 2394757
LSBundlePath /Applications/Google Chrome.app
LSCheckInTime* 2018/03/08 13:13:07
LSDisplayName Google Chrome
LSExecutableFormat LSExecutableMachOFormat
CFBundleExecutablePathDeviceID 16777220
CFBundleExecutablePathINode 44923615
CFBundleExecutablePath /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
CFBundleSignature rimZ
CFBundlePackageType APPL
Flavor 2
LSLaunchTime 2018/03/08 13:13:01
LSLaunchedByLaunchServices true
LSLaunchedWithLaunchD true
LSLaunchedInQuarantine true
pid 96843
LSParentASN ASN:0x0-0x14014:
UIPresentationMode Normal
UIPresentationOptions 0
LSWantsToComeForwardAtRegistrationTimeKey true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment