OK, I found out that you have to create your own group and within this group your script. In the Scritp Editor there are two disk buttons and one with a green dot. This one allows you to store the script in a new file. Every time you changed something you can store the script, but storing it in the file system you need to walk throught the store dialog. But I didn't found out who sync the script editor with the file.
–
tria1312Feb 8 '12 at 7:02

1 Answer
1

EA scripts are stored in one of three locations: in the installation directory, in the project itself and in MDG Technologies.

Scripts in the installation directory are available in any project you access from that machine. They show up in the EA script group Local Scripts.

Scripts can also be stored in the project itself. Each EA project is a database (an .EAP file simply contains a JET database), and scripts stored in the project are found in the table t_scripts, as are the script groups you define to organize them.

This is where scripts land when you create them, and while you can export a script from the editor to a file (Save As), AFAIK there is no way to import them in the corresponding manner. But you don't need to save the script to a file in order to use it, and EA doesn't use the file, only the entry in t_scripts.

Scripts from t_scripts are only available in the project where they are stored. If that project is accessed by several users (.EAP file on network drive or external database repository), they can all use the scripts regardless of the machine from which they access the project.

Finally, scripts can be included in an MDG Technology, which is EA's way of bundling adaptations that are primarily modelling-related (eg UML profiles and document templates, as opposed to Add-Ins which contain arbitrary functionality). When deployed, an MDG technology consists of an XML file in which the scripts (and all other bundled adaptations) can be found.

MDG-deployed scripts are available in any EA session where you have enabled that MDG Technology (Settings - MDG Technologies), and appear in a script group with the same name as the MDG Technology. (The script group EAScriptLib is in fact an MDG Technology.) If the MDG Technology is deployed on a network drive, you can use the scripts from any machine and in any project.