You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
362 B
5 lines
362 B
import {runAppleScript} from 'run-applescript'; |
|
|
|
export default async function bundleName(bundleId) { |
|
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`); |
|
}
|
|
|