AppleScript循环打印所有文件文件夹名称路径



帮助我需要将文件夹中包含的所有文件夹和文件名打印到IDE的输出中。这是我到目前为止的代码:

set Music_Collection_Folder to POSIX file "/Volumes/A_Live HD/Music/Collection" as alias
set the_string to ""
tell application "Finder"
repeat with this_item in (get items of ("/Volumes/A_Live HD/Music/Collection"))
set the_string to the_string & name of this_item & tab & modification date of this_item & tab & size of this_item & tab & kind of this_item & return
end repeat
end tell

您创建了目标文件夹的别名使用它

Finder不知道什么是POSIX路径

repeat with this_item in (get items of Music_Collection_Folder) ...

最新更新