MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / associatedBundleIdentifier

Function associatedBundleIdentifier

apps/cli/src/service.ts:239–249  ·  view source on GitHub ↗
(programArguments: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

237};
238
239const associatedBundleIdentifier = (programArguments: ReadonlyArray<string>): string | null => {
240 const executablePath = programArguments[0];
241 if (!executablePath) return null;
242 const appBundlePath = enclosingAppBundlePath(executablePath);
243 if (!appBundlePath) return null;
244 const bundleIdentifier = readBundleIdentifier(appBundlePath);
245 if (bundleIdentifier) return bundleIdentifier;
246 return /(?:^|\/)Executor\.app\/Contents\//.test(executablePath)
247 ? DESKTOP_APP_BUNDLE_IDENTIFIER
248 : null;
249};
250
251export interface LaunchdPlistOptions {
252 readonly label: string;

Callers 1

generateLaunchdPlistFunction · 0.85

Calls 2

enclosingAppBundlePathFunction · 0.85
readBundleIdentifierFunction · 0.85

Tested by

no test coverage detected