songxing10000
9/13/2017 - 4:04 PM

openOrCloseApp

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