mdls返回`(null)`
function ls-by-added() { # Doesn't work well for files having '(null)' as their DateAdded, which some do. mdls -name kMDItemFSName -name kMDItemDateAdded -raw -- *(D) | \ xargs -0 -I {} echo {} | \ sed 'N;s/\n/ /' | \ sort --reverse | \ sed -E "s/^.*\\+0000 //" # removes …