Skip to content

Instantly share code, notes, and snippets.

@songxing10000
Created September 13, 2017 16:04
Show Gist options
  • Save songxing10000/918c6d3f366d9309a31e42f38ac6f9be to your computer and use it in GitHub Desktop.
Save songxing10000/918c6d3f366d9309a31e42f38ac6f9be to your computer and use it in GitHub Desktop.
openOrCloseApp
tell application "System Events"
get name of every process whose name is "企业微信"
if result is not {} then
tell application "企业微信"
quit
end tell
else
tell application "企业微信"
activate
end tell
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment