我正试图在applescript上工作,以隐藏所有打开的应用程序。
tell application "System Events"
set visible of every process whose visible is true and name is not "Finder" to false
end tell
不幸的是,它并没有像预期的那样起作用。
第一次运行
。
我的目标是,一旦applescript运行,隐藏所有正在运行的应用程序
发布于 2022-03-07 08:44:40
根据Willeke的说法,这对我来说是可行的:
tell application "System Events"
set visibleApps to every process whose visible is true and name is not "Finder"
repeat with theApp in visibleApps
set visible of theApp to false
end repeat
end tell
https://stackoverflow.com/questions/71371438
复制相似问题