建议使用AppleScript作为Automator动作,以避免出现奇怪的问题。
以下是一个例子,展示如何使用AppleScript在桌面上创建一个名为'Test Folder”的文件夹:
tell application "Finder" set theFolder to make new folder at desktop with properties {name:"Test Folder"} end tell
此方法可以避免出现由Automator动作引起的奇怪问题,并且通过使用AppleScript可以更好地控制文件夹的创建过程。