time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

index.js (372B)


      1 import {runAppleScriptAsync} from 'run-applescript';
      2 
      3 export default async function bundleName(bundleId) {
      4 	return runAppleScriptAsync(`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")`);
      5 }