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.
6 lines
362 B
6 lines
362 B
2 months ago
|
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")`);
|
||
|
}
|