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

Function associatedBundleIdentifier

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

Source from the content-addressed store, hash-verified

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

Callers 1

generateLaunchdPlistFunction · 0.85

Calls 2

enclosingAppBundlePathFunction · 0.85
readBundleIdentifierFunction · 0.85

Tested by

no test coverage detected