Skip to content

Commit 2d9427c

Browse files
committed
added set_frontmost_process.scpt
1 parent 3c64471 commit 2d9427c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)