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
もちろん、名前を知らずに開きたいです。
ありがとう。