The batch of scripts I call PathScripts are those which manipulate paths, anchorPoints and handles. Most of these are my cheezy workarounds for features which FreeHand users take for granted, but which Illustrator still lacks.

Link to zip archiveDownload The .zip Archive

The operative word here is "workaround." It's more tedious to dig through Illustrator's File menu and Scripts submenu to perform these commonly-needed functions; but it's still better than just not having them available at all.

Link to example image JET_CloseSelectedPaths.jsx
Illustrator's Join command (Ctrl J) cannot close more than one path at a time. When closing paths via Illustrator's Join command, the closing segment is always straight, regardless of pre-existing curve handles. This script closes multiple paths at once and respects their existing outboard handles.

To Use: Select one or more pathItems. Run the script. For each selected open path, the script closes the path.


Link to example image JET_RemoveSelectedPoints.jsx
Illustrator's Delete Anchor Point Tool can only remove one point at a time. Pressing Delete when multiple anchorPoints are selected also deletes their associated segments, breaking the paths. This script removes selected points of selected paths without breaking the paths.

To Use: Select one or more anchorPoints on one or more paths. Run the script. Each selected point is removed from the path, without breaking the path.


Link to example image JET_JoinNearest.jsx
Illustrator's Join can only join two paths at a time, requires tedious selection of endpoints, and always joins with a straight segment, regardless of existing outboard curve handles. This script joins selected paths at their nearest ends. The joining segments retain any pre-existing outboard handles.

To Use: Select two or more pathItems. Run the script. The paths are joined end-to-nearest-end. The resulting path takes on the Fill and Stroke of the topmost original path.


Link to example image JET_JoinNearestStraight.jsx
Illustrator's Join can only join two paths at a time, requires tedious selection of endpoints, and always joins with a straight segment, regardless of existing outboard curve handles. This script joins selected paths at their nearest ends. The joining segments retract any pre-existing outboard handles, resulting in straight joining segments.

To Use: Select two or more pathItems. Run the script. The paths are joined end-to-nearest-end. The resulting path takes on the Fill and Stroke of the topmost original path.


Link to example image JET_OpenSelectedPaths.jsx
FreeHand provides an Open Path command opposite to the Close Path command. Illustrator does not. This script does the opposite of the JET_CloseSelectedPaths script. It removes the last segment of each of the selected paths. If the removed segment is curved, the curve handles remain as outboard handles of the new paths' endpoints.

To Use: Select two or more pathItems. Run the script. The paths are joined end-to-nearest-end. The resulting path takes on the Fill and Stroke of the topmost original path.


Link to example image JET_RetractHandleLeft.jsx and JET_RetractHandleRight.jsx
FreeHand provides separate left and right Retract Handles buttons, as well as buttons to convert point kind (corner, curve, tangent). Illustrator only obtained buttons to convert the kind (smooth or corner) of multiple selected points in CS3, and provides no control over individual handles. The CS3 buttons always retract both handles when converting to corner points; always extend handles when converting to smooth points. This script, and its companion allow you to retract either the leading or trailing handle of each selected anchorPoint. It does this without converting the kind of the anchorPoints.

To Use: Select one or more anchorPoint(s). Run the script. The left (leading) curve handles are retracted to the position of their associated anchorPoints.


Link to example image JET_ReversePath.jsx
FreeHand provides a Reverse Path command which works on any number of selected paths or subpaths. Illustrator provides a reverse direction toggle button in the Attributes Panel, but it only works on subpaths of Compound Paths. This script, reverses the direction of one or more selected paths and/or subpaths. Especially useful for reversing the spines of Brush and Blend spines.

To Use: Select one or more pathItem(s). Run the script. The direction of each selected path is reversed.


Link to example image JET_Split.jsx
FreeHand has long provided a Split Path command which breaks paths at all subselected points. Illustrator only just gained a similar function in CS3 in the Control Panel's Cut Paths At Selected Anchor Points button. Like other buttons in the Control Panel, this one disappears if its expected selection context is not true. For example, it disappears if all of the points of a path are selected. This script, splits all selected paths at all selected anchorPoints.

To Use: Select one or more pathItem(s). Run the script. The path(s) are cut at each selected anchorPoint.