@ccstore Thanks for your job. It's awesome.
The good new is that the script works well in MacOs 10.13.6 High Sierra.
But the Finder, as for mine, responses to the script with a short delay.
I will try to read the source code later and try to find out why.