Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个自动化服务,它将我的发票标记为已付款...我有一个工作流程,它获取选定的 PDF,将变量设置为 PDF 的路径,为其添加水印,然后将其返回到其原始位置。但是,最后一步不起作用,因为路径变量链接到 PDF 而不是文件夹。
请帮忙。
您可以像这样获取输入的父文件夹:
on run {input} tell application "Finder" to set myFolder to (container of (first item of input)) as alias return myFolder end run