我编写了以下脚本来最大化/最小化我当前正在处理的窗口。
tell application (path to frontmost application as text) to tell first window to set miniaturized to not miniaturized
和
tell application "System Events"
keystroke "f" using {command down, control down}
end tell
然后,我使用 Quicksilver 为每个脚本分配键盘快捷键。但是由于某种原因,如果脚本文件没有保存在桌面上,它就不起作用。我似乎无法理解为什么。
也有人能解释一下这条线是什么path to frontmost application as text
意思吗?