【发布时间】:2021-08-26 15:42:31
【问题描述】:
寻找 AppleScript 以添加到自动机工作流程中,该工作流程将选择按名称升序列出的文件夹中的最后一个文件,然后继续使用 Automator 工作流程。
【问题讨论】:
标签: file select applescript automator
寻找 AppleScript 以添加到自动机工作流程中,该工作流程将选择按名称升序列出的文件夹中的最后一个文件,然后继续使用 Automator 工作流程。
【问题讨论】:
标签: file select applescript automator
这是脚本的答案,在脚本编辑器中执行,如果 Automator 此刻对你来说很困难。
set theFolder to choose folder
tell application "Finder"
select last item of (sort files of theFolder by name)
activate
delay 10 -- to see visually
end tell
【讨论】:
如果我正确理解您的问题,那么以下应该作为 Automator 操作:
on run {input, parameters}
set theFolder to item 1 of input
tell application "Finder"
select last item of (sort files of theFolder by name)
end tell
end run
【讨论】: