We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c64471 commit 2d9427cCopy full SHA for 2d9427c
applescript/set_frontmost_process.scpt
@@ -0,0 +1,20 @@
1
+#!/usr/bin/env osascript
2
+# vim:ts=4:sts=4:sw=4:et
3
+#
4
+# Author: Hari Sekhon
5
+# Date: 2022-02-28 13:05:26 +0000 (Mon, 28 Feb 2022)
6
7
+# https://github.com/HariSekhon/DevOps-Bash-tools
8
9
+# License: see accompanying Hari Sekhon LICENSE file
10
11
+# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12
13
+# https://www.linkedin.com/in/HariSekhon
14
15
+
16
+on run argv
17
+ tell application "System Events"
18
+ set frontmost of application process (item 1 of argv) to true
19
+ end tell
20
+end run
0 commit comments