Install a script in the Scripts menu
To include a script in the Scripts menu (File > Scripts), save the script in the Scripts folder, located in the /Illustrator CS4/Presets folder in your Illustrator CS4 installation directory. The script’s filename, minus the file extension, appears in the Scripts menu. Scripts that you add to the Scripts folder while Illustrator is running do not appear in the Scripts menu until the next time you launch Illustrator. Any number of scripts can be installed in the Scripts menu. If you have many scripts, use subfolders in the Scripts folder to help organize the scripts in the Scripts menu. Each subfolder is displayed as a separate submenu containing the scripts in that subfolder.