Get full directory contents with AppleScript
问题 I need to get the entire (visible) contents of a folder and its subfolders as a list. Is this possible? 回答1: I'm sure there is a shell command that can do this faster, but here is one way in pure Applescript that gives you total control over formatting what info you would like displayed. property kFileList : {} tell application "Finder" set source_folder to choose folder with prompt "Please select directory." my createList(source_folder) end tell on createList(item_list) set the the_items to