testdriverai 5.7.5 → 5.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.js +1 -0
- package/lib/focus-application.js +8 -1
- package/package.json +1 -1
package/agent.js
CHANGED
package/lib/focus-application.js
CHANGED
|
@@ -38,6 +38,13 @@ end tell`;
|
|
|
38
38
|
// set value of attribute "AXMinimized" of every window of application process "${windowName}" to true
|
|
39
39
|
// end tell`;
|
|
40
40
|
|
|
41
|
+
// const appleScriptActivate = (windowName) => `
|
|
42
|
+
// tell application "${windowName}"
|
|
43
|
+
// reopen
|
|
44
|
+
// activate
|
|
45
|
+
// end tell
|
|
46
|
+
// `;
|
|
47
|
+
|
|
41
48
|
const appleScriptActivate = (windowName) => `
|
|
42
49
|
tell application "${windowName}"
|
|
43
50
|
reopen
|
|
@@ -94,7 +101,7 @@ async function showTerminal(appName) {
|
|
|
94
101
|
try {
|
|
95
102
|
if (platform() == "mac") {
|
|
96
103
|
await execSync(`osascript -e '${appleScriptActivate(appName)}'`, { stdio: [] });
|
|
97
|
-
await execSync(`osascript -e '${appleScriptSetFrontmost(appName)}'`, { stdio: [] });
|
|
104
|
+
// await execSync(`osascript -e '${appleScriptSetFrontmost(appName)}'`, { stdio: [] });
|
|
98
105
|
|
|
99
106
|
} else if (platform() == "windows") {
|
|
100
107
|
return runPwsh(appName, "Restore");
|