MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / getFrontmostApp

Method getFrontmostApp

src/main/api/renderer/system.ts:107–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 private async getFrontmostApp(): Promise<{
108 name: string
109 bundleId: string
110 path: string
111 } | null> {
112 try {
113 return await appleScriptHelper.getFrontmostApp()
114 } catch (error) {
115 console.error('[System] 获取当前激活应用失败:', error)
116 return null
117 }
118 }
119
120 private async activateApp(
121 identifier: string,

Callers 1

setupIPCMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected