Skip navigation
Currently Being Moderated

Script for Selecting Open Paths in Illustrator CS6

Jul 10, 2012 11:57 PM

I have created this script for selecting open paths in illustrator cs6 as the graffix plugin is not working under CS6.


Just save the following text in /Applications/Adobe Illustrator CS6/Presets/en_US/Scripts/Select Open Paths.js



if (documents.length > 0 && activeDocument.pathItems.length > 0){
          var allPaths = activeDocument.pathItems;
          var allPathsCount = allPaths.length;
          var openPathsAreLocked = false;
          var lockedOpenPaths = 0;
          var locked = false;
          for (var i=0; i < allPathsCount; i++){
                    allPaths[ i ].selected = false;
                    if( ! allPaths[ i ].closed){
                                        allPaths[ i ].selected = true;
                              } catch (e) {
                                        openPathsAreLocked = true;
          if (openPathsAreLocked) alert (lockedOpenPaths + " open paths are locked or hidden (or their layer is locked or hidden) and cannot be selected");
  • Currently Being Moderated
    Aug 3, 2012 8:12 AM   in reply to cutarica.john

    How do you do this on a mac? Or maybe I should say, what app should I use to create this? The Text Edit App won't let me save this  file. I can change the extension afterwords but no go.

    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 9:34 AM   in reply to TekART

    Copy the above and paste into the text editor of your choice. Force the text to plain text (not RTF; in TextEdit use as below). Save it as above.


    Screen shot 2012-08-03 at 9.33.03 AM.png

    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 9:38 AM   in reply to Larry G. Schneider

    So it needs to be a txt extension, not js?

    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 9:53 AM   in reply to TekART

    Ah, got it. I opened the renamed file in the Javascript Console, pasted your file and renamed it to jsx. Then in the app, I found it under File>Scripts rather than Select>object where former plugins were located.


    Thank you.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points