firstly please forgive my lack of knowledge of Unix - that's why I'm here after all. I've created an AppleScript which searches for files on a Mac and have greatly improved the speed by using the following command:
set MySubfolderTextList to do shell script "find " & MyDirectory & " -type d"
In plain Unix that would be find MyDirectory -type d
This gives me a list of every subfolder recursively starting from the top level of the folder called MyDirectory
. Now the speed of this is amazing compared to the old routine that I made with regular AppleScript but the thing is when I run this script on a folder with thousands of subdirectories, I get a little beach ball for a number of seconds or minutes indicating that either something is happening or the system has crashed. I was hoping that I could get some feedback from Unix on the progress of the searching, otherwise my clients will freak out that the program has crashed.