set appNames to {"WeChat","QQ"} -- 将要隐藏的进程名称放入数组中
tell application "System Events"
repeat with appName in appNames
set appProcess to first process whose name is appName
set appId to id of appProcess
tell process appName
set visible to false
end tell
end repeat
end tell
标签:set,end,appName,process,AppleScript,Alfred,老板键,tell
From: https://www.cnblogs.com/netstat/p/18101158