LaunchBar-Scripts
LaunchBar-Scripts copied to clipboard
LB6 Action: Inspect Process
Idea: Get App Infos like Bundle Identifier and other things
Inspiration: Bundle ID: http://cl.ly/2Z173M1Z2x3Q
http://www.macosxautomation.com/applescript/features/appobject.html
tell application "LaunchBar"
set bundleID to id
set appVersion to version
set appName to name
log appName & "\n" & bundleID & "\n" & appVersion
tell application "System Events"
tell process "LaunchBar"
set bundleID to bundle identifier
set arch to architecture
set creatorType to creator type
set displayedName to displayed name
set fileFromWhichTheProcessWasLaunched to file
set fileType to file type
set isFrontmost to frontmost
set hasScriptingTerminology to has scripting terminology
set processID to id
set processName to name
set partitionSpaceUsed to partition space used
set shortName to short name
set totalPartitionSize to total partition size
set unixProcessID to unix id
set isVisible to visible
end tell
end tell
log bundleID & "\n" & arch & "\n" & creatorType & "\n" & displayedName & "\n" & fileFromWhichTheProcessWasLaunched & "\n" & fileType & "\n" & isFrontmost & "\n" & hasScriptingTerminology & "\n" & processID & "\n" & processName & "\n" & partitionSpaceUsed & "\n" & shortName & "\n" & totalPartitionSize & "\n" & unixProcessID & "\n" & isVisible
end tell
return clipboard info
return the clipboard as string
return current date
return "date string in various formats" YYYY, YYYY-MM, YYYY-MM-DD, YYYY-MM-DD HH:MM, etc."
return random number
return round (random number)
return get volume settings
return system info