【发布时间】:2019-02-03 13:28:28
【问题描述】:
通常我会得到一个包含几十个文件名的 Excel 电子表格,然后我需要单独搜索。
有没有办法让我简单:
- 选择所有文件名,例如Excel A 行,
- 然后在“This Mac”上搜索所有这些文件
- 然后将所有找到的文件复制到桌面上的新建文件夹
到目前为止,我已经尝试了搜索的第一部分,这就是我得到的结果:a)
Automator with Variable. But the problem is, it only searches for 1 file from selection
b)
c)/usr/bin/pbcopy
on run {input, parameters}
tell application "System Events"
keystroke "f" using {command down}
keystroke "v" using {command down}
end tell
return input
end run`
最终结果,与选项 b) 相同。我计划在 Automator 中将其作为“Service”运行,稍后我可以将其分配给键盘快捷键。
我很确定应该有一个简单的 shell 选项 - 任何建议都将不胜感激。
标签: excel macos shell applescript automator