作用:告诉应用程序
System Events 是最外围的框架 →
Money Pro(具体某个应用)→
window 1(该应用的第1个窗口)→
button 1(窗口中的第1个按钮)
tell application "Money Pro"
activate -- 告诉 Money Pro,让它激活自己
end tell
tell application "System Events"
tell process "Money Pro"
-- 你希望进程 Money Pro 做的事
end tell
end tell
tell application "System Events"
tell process "Money Pro"
tell window 1
-- 你希望 window 1 做的事
end tell
end tell
end tell