toAdjust dashes to corner and path ends Illustrator CC 2015 [Mod edited]
Hello,
I am using Illustrator CC 2015.1.0 with Scripting. I have dashed lines in my drawing and want to align dashes to corners and path ends.
No problem in the Illustrator stroke menu. There are two buttons with dashed lines on it. There I can select this option:


Since I cannot find the script command to do this, I use this script
But this script does no longer work in CC 2015.1.0. So what can I do?
Is the option in InDesign now available as script command?
Or has someone an update of the script?
Best regards
Harald