【发布时间】:2014-09-07 03:00:27
【问题描述】:
我有一个可以获取文件对象的applescript
我现在想遍历其路径上的所有文件夹(每个文件可能向下很多层)并标记它们的颜色。
到目前为止,我可以看到文件中有一个路径,但我不知道将其转换为什么类型(它不是字符串):
copy path of theFile as string to FileNamesPath
如果我能得到每个文件夹,我就可以应用标签/标签来为它们设置颜色:
tell application "Finder" to set label index of theFolder to 3
如何从文件中获取每个文件夹?
【问题讨论】:
标签: applescript directory