On Feb 10, 2012, at 05:32, KOENIG Yvan wrote: Thanks for this code.
Certainly.
I added a R in the call to Shell to get the contents of subfolders.
Below are the paths to files embedded in the subfolder but the 'subfolder' descriptor is dropped.
Macintosh HD:Library:Fonts:LicenseExtrasCandela.pdf would be : Macintosh HD:Library:Fonts:Candela ƒ:LicenseExtrasCandela.pdf
'ls' gets tricky with the -R switch.
Run this on a directory in the Terminal, and you'll see.
"ls" -Rtr1
If you want to create a more coherent path structure when going recursive you need to use something like 'find':
This will find in the current directory:
find . | egrep -iv ".ds_store"
This will yield full-paths rather than relative ones:
find ~/Desktop/ | egrep -iv ".ds_store"
I'm pretty sure you can't do the date-sort in 'find' like we're doing with 'ls', but I'm too tired to make sure at the moment.
Anyway that give you a little bit to chew on.
-- Best Regards, Chris
|