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
代碼是好的,但同時創造你可能已經忘記了一個新的文件夾 –
它沒有運行文件夾操作設置的一步。我成功測試了代碼。 – vadian