Mac Automator:批量创建子文件夹

时间:2015-06-04 23:07:19

标签: macos automator subdirectory

我正在尝试使用Automator来获取一堆以前创建的文件夹,并在每个文件夹中创建两个新文件夹,一个" Originals"文件夹和"扫描"夹。我希望能够拖动或选择需要子文件夹的文件夹,然后自动运行该操作。

我尝试同时添加操作和服务来添加子文件夹,但是当我选择多个文件夹时,它只会运行一次。

以下是我迄今为止所做的截图... enter image description here

1 个答案:

答案 0 :(得分:1)

尝试将工作流程保存为应用程序: enter image description here

将应用程序保存到桌面,然后您可以随时删除文件夹。

这是一个AppleScript,当导出为应用程序时,它起到Droplet的作用,可以在每个文件夹中放置所需的文件夹:

on open droppings
    repeat with everyDrop in droppings
        if (info for everyDrop)'s folder is true then
            --make two folders
            tell application "Finder"
                make new folder at (everyDrop as text) with properties {name:"Originals"}
                make new folder at (everyDrop as text) with properties {name:"Scans"}
            end tell
        end if
    end repeat
end open

on run
    display dialog "Drop some folders here to add Originals and Scans folders" buttons {"Aye Aye"} default button "Aye Aye"
end run
相关问题