On 3 Jan 2015, at 21:47, Deivy Petrescu <email@hidden> wrote:
Actually, there is a command to do exactly that. It had been broken for a very long time, and everyone complained about that. After it was fixed it has been rarely mentioned.
<script> tell application "Finder" set mainfldr to target of window 1 return entire contents of mainfldr as alias list end tell <script>
It is very fast too!
That just times out on my system if done on the home directory (didn't try it on anything smaller).
For this kind of task, sed is your friend, combined with a bit of ls -R (Ahh, Yvan, beat me to it!) and grep:
In Terminal, navigate to the directory you want to list with
cd
Then
ls -R | grep ":" | sed -e 's/://' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' | open -f
I think you'll find that's....pretty fast, even on your home directory.
Phil
|