Finder 中的 Applescript:前进到下一个文件
我想做的是:
将 x 设置为当前选择,然后将选择前进到下一个文件,然后删除 x。
我这样做是因为 CMD-backspace 每次都会清除选择,这很烦人!
What I'm trying to do is:
set x to current selection, then advance the selection to the next file and then delete x.
I'm doing this because CMD-backspace clears the selection every time and that's annoying!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有点困惑。 当您说“下一个文件”时,您指的是选择的下一个文件,还是整个文件夹中的下一个文件? 我都给你。
选择
整个文件夹
I'm a bit confused. When you say 'next file' are you referring to the next file in the selection, or the next file in the whole folder? I'll give you both.
Selection
Entire folder
您可以告诉系统事件对按键进行脚本化,例如按下向下箭头,然后通过 Command ⌘ + delete 删除
You could tell system events to script the keys, such as push the down arrow, then delete by Command ⌘ + delete