Last active
December 16, 2015 16:17
-
-
Save lm913/a747d35677adfe8f5cc3 to your computer and use it in GitHub Desktop.
Script to count path points
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var docRef = app.activeDocument; | |
try{ | |
var numPaths = docRef.pathItems.length; | |
var countPoints = docRef.pathItems[0].subPathItems[0].pathPoints.length; | |
if (numPaths > 0){ | |
alert(countPoints); | |
} | |
} | |
catch (numPaths) { | |
alert("No paths exist!"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment