Is there a File explorer/Finder like tool for mac os, which can sort folders by name?
I hope running this python script works. TEST
would have all the folders you mentioned. I have modified the workflow slightly to avoid messing with Finder and AppleScript. The final file can be opened in Excel.
import os
import fnmatch
import time
directory = "your/dirname/Desktop/TEST"
y = [x[0] for x in os.walk(directory)]
y = y[1:]
#%%
thedict = {}
for one in y:
thedict[one] = ""
#makes dictionary with all the folder names
for direc in thedict:
matches = []
for root, dirnames, filenames in os.walk(direc):
for filename in fnmatch.filter(filenames, '*.jpg'):
matches.append(os.path.join(root, filename))
for photo in matches:
stri = "open " + photo
os.system(stri)
error = raw_input("error?")
thedict[direc] = error
#Photo opens, you see it, close it, type the error in terminal and hit #enter.
#Then the next one comes up.
import csv
with open('outputf.csv', 'w') as f:
for key in thedict.keys():
f.write("%s,%s\n"%(key,thedict[key]))