Skip to content

Instantly share code, notes, and snippets.

@jasontucker
Created February 21, 2018 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasontucker/5951d4a67cab50208096fcfefe06b6a2 to your computer and use it in GitHub Desktop.
Save jasontucker/5951d4a67cab50208096fcfefe06b6a2 to your computer and use it in GitHub Desktop.
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
@jasontucker
Copy link
Author

pid1=$(ps axo pid,command | grep "[A]crobat" | awk '{print $1}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment