如何清除Finder项目的选择。我刚刚从Snow Leopard和Snow Leopard中更新了Mavericks,如果按下esc,它将清除当前的选择。像这样:
tell application "System Events" to key code 53
小牛队怎么做?
答案 0 :(得分:4)
纯苹果脚本的方法是:
tell application "Finder"
set selection to {}
end
答案 1 :(得分:0)
按住选项并选择"取消全选"来自Finder"编辑"菜单。或者,只需使用快捷键Option + Cmd + A.
AppleScript:
tell application "System Events" to keystroke "a" using {command down, option down}
来源:http://www.codez4mac.com/forum/viewtopic.php?f=212&t=72255