Skip to content

Instantly share code, notes, and snippets.

@judismith
Created June 13, 2013 13:57
Show Gist options
  • Save judismith/5773874 to your computer and use it in GitHub Desktop.
Save judismith/5773874 to your computer and use it in GitHub Desktop.
Name of subfolders to text file as list
tell application "Finder"
set AppleScript's text item delimiters to "
"
set myProjects to get name of folders of folder "Macintosh HD:Users:judis:Google Drive:Matters:" as text
set thePath to (path to documents folder as text) & "projects.csv"
set NewFile to open for access file thePath with write permission
write myProjects to NewFile as «class utf8»
close access NewFile
set AppleScript's text item delimiters to " "
myProjects
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment