Last active
August 3, 2024 18:53
-
-
Save andrewpetrochenkov/1ab9807998e82dfbb7d774f98cf6df9c to your computer and use it in GitHub Desktop.
Revisions
-
andrewpetrochenkov revised this gist
Aug 3, 2024 . 2 changed files with 11 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,11 @@ osascript <<EOF tell application "System Events" name of (first process whose frontmost is true) end tell EOF lsappinfo info -only name `lsappinfo front` | awk -F'"' '{print $4}' lsappinfo info -only pid `lsappinfo front` | awk -F'"=' '{print $2}' lsappinfo info -only bundlepath `lsappinfo front` | awk -F'"' '{print $4}' lsappinfo info -only bundleID `lsappinfo front` | awk -F'"' '{print $4}' This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +0,0 @@ -
andrewpetrochenkov revised this gist
Jul 19, 2021 . No changes.There are no files selected for viewing
-
andrewpetrochenkov created this gist
Jun 7, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/usr/bin/env bash { set +x; } 2>/dev/null lsappinfo info -only name `lsappinfo front` | awk -F'"' '{print $4}' lsappinfo info -only pid `lsappinfo front` | awk -F'"=' '{print $2}' lsappinfo info -only bundlepath `lsappinfo front` | awk -F'"' '{print $4}' lsappinfo info -only bundleID `lsappinfo front` | awk -F'"' '{print $4}' This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/usr/bin/env bash { set +x; } 2>/dev/null osascript <<EOF tell application "System Events" name of (first process whose frontmost is true) end tell EOF