我在考虑将此语句用于 GUI 脚本的最佳方法是什么:
tell application "System Events"
有什么区别
tell application "System Events"
tell process "Finder"
-- do something with the GUI
end tell
end tell
和
tell application "Finder"
tell application "System Events"
-- do something with the GUI
end tell
end tell
此外,似乎“进程”语句可以访问 GUI,而应用程序不能。