Created
September 13, 2017 16:04
-
-
Save songxing10000/918c6d3f366d9309a31e42f38ac6f9be to your computer and use it in GitHub Desktop.
openOrCloseApp
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" | |
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