Created
February 21, 2018 17:54
-
-
Save jasontucker/5951d4a67cab50208096fcfefe06b6a2 to your computer and use it in GitHub Desktop.
This file contains 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 characters
tell application "System Events" | |
set ProcessList to name of every process | |
if "TextEdit" is in ProcessList then | |
set ThePID to unix id of process "TextEdit" | |
do shell script "kill -KILL " & ThePID | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pid1=$(ps axo pid,command | grep "[A]crobat" | awk '{print $1}')