2017-08-10 219 views
1

我是苹果手机和automator的新手。我已经探索了苹果公司的不同线程,但无法找到有用的东西。 嗯我的问题是,我有一个文件夹,即“工作”,我已对其应用文件夹操作。在“工作”即“abc”创建新文件夹时,我想在“abc”中创建三个新文件夹。看看我的代码在指定文件夹中创建文件夹在新文件夹中创建子文件夹

on adding folder items to this_folder after receiving added_items 
    tell application Finder 
    repeat with this_item in added_items 
     make new folder at this_item with properties {name:"Main"} 
     make new folder at this_item with properties {name:"Lower"} 
     make new folder at this_item with properties {name:"Upper"} 
    end repeat 
    end tell 
end adding folder items to 

回答

1

几乎...

Finder必须在双引号

tell application "Finder" 
+0

代码是好的,但同时创造你可能已经忘记了一个新的文件夹 –

+0

它没有运行文件夹操作设置的一步。我成功测试了代码。 – vadian

相关问题