【问题标题】:Automator: Move specific file from folderAutomator:从文件夹中移动特定文件
【发布时间】:2018-02-10 00:28:11
【问题描述】:

我有一个 Automator 服务,它从文件夹内容创建 .sketch 文件。我需要将文件移动到层次结构中的更高级别(例如,默认输出路径是…/ExampleFolderName/MySketchFileContent/,需要的输出路径是…/ExampleFolderName/)。

我该怎么做?谢谢。

There is the workflow screenshot.

【问题讨论】:

  • > mv .sketch ../
  • @peyo 这是shell脚本吗?如果是这样,我会收到一个错误“-: .sketch: command not found”

标签: bash macos applescript workflow automator


【解决方案1】:

此工作流程在 …/ExampleFolderName/ 而不是 …/ExampleFolderName/MySketchFileContent/ 上创建存档,就像它目前所做的那样。

【讨论】:

  • @Roman Kornikow,很高兴我能帮上忙!顺便提一句。我将“服务接收选定”设置为“文件夹”,因为我认为在这个用例中您只会选择一个文件夹。如果该假设是错误的,显然您可以将其设置为“文件或文件夹”。
  • 是的,这很好!
【解决方案2】:

用另一种方式解决。我只是将草图扩展名重命名为 zip 并提取

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-29
    • 2021-10-16
    • 1970-01-01
    • 1970-01-01
    • 2021-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多