【问题标题】:Unable to pass Automator Finder input as output in AppleScript无法将 Automator Finder 输入作为 AppleScript 中的输出传递
【发布时间】:2017-04-16 06:50:10
【问题描述】:

总体目标:理想情况下,我想检查从 Find Finder Items 收到的文件列表,并将每个文件传递给脚本/自动程序块。

现在:我正在尝试遍历从 Automator 中的 Find Finder Items 块传递的每个文件,并确保我能够正确传递它再次作为输出。但是,一旦我“触摸”来自 input 的任何项目,我就无法正确传递它。请参阅随附的屏幕截图。

【问题讨论】:

    标签: input applescript automator finder


    【解决方案1】:

    你必须写

    set end of file_list to contents of f
    

    原因是f 表示对对象的引用(例如item 1 of input)而不是对象本身。
    contents of 取消引用对象。

    【讨论】:

      猜你喜欢
      • 2015-06-26
      • 2015-01-12
      • 1970-01-01
      • 1970-01-01
      • 2021-10-27
      • 2020-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多