Roland,
This script, extracted from Chris Stone's Script 2 posted on 2017-02-22, works fine for me,
running from Apple's Script Menu (and from FastScripts), in
Finder 10.11.4 (10.11.4) on macOS 10.11.6.
BTW, I also have TotalFinder installed, but it seems to have no effect of the script.
I made a few, unimportant, changes to suit my preferences. All are marked with ### @JMichaelTX
use AppleScript
version
"2.4" -- Yosemite (10.10) or later
use scripting additions
### EXTRACTED FROM script 2 BY @ccstone ###