【发布时间】:2011-05-06 15:40:29
【问题描述】:
我想隐藏最前面的应用。 我知道您可以使用以下语法隐藏进程:
tell application "System Events"
set visible of process "..." to false
end tell
而且我知道如何获得最前面的应用程序:
(path to frontmost application as string)
但是如何将这两个命令桥接在一起呢?
这不起作用:
tell application "System Events"
set visible of process (path to frontmost application as string) to false
end tell
【问题讨论】:
标签: process applescript hide pid