This site aims to be the ultimate resource for Adobe Illustrator(c) scripting. Here you will find regularly updated collection of free scripts for all your creative needs.

If you find yourself doing the same task again and again, or you have an idea how to optimise your  workflow – get in touch, and we will provide solution.

Path Length

Finds out length of the each selected path or total length of the selected paths. Then writes it out on the artboard as text object.

This script uses JavaScript’s “length” property of PathItem. if it is available (= CS3 or later). You can force calculate the length by “use_native_property” setting set to false. (See comments inside the script )

The returned values of “PathItem.length” property and the function in this script are slightly different especially in complex paths. It seems that the difference is 0.05 millimetre at most.