如何将变量传递给 tell application currentWindow
Applescript?
我有这个代码:
tell application "System Events"
set currentWindow to get name of processes whose frontmost is true
end tell
-- get bundle identifier of (info for (path to application currentWindow)) -- KO
-- tell application id currentWindow -- KO
-- tell application "Finder" -- ok
tell application currentWindow -- KO!
activate
end tell
我想打开currentWindow
,当然,不知道名字。
谢谢。