()
| 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, |