Managing Scripts

Developer Resources

Managing Scripts

When you are developing scripts with multiple files, you need to have ready access to the code, whether or not the scripts are stored in the project or external to the project.  

When scripts are stored in the project, you can easily access and organize your scripts using the project panel.  When they are stored external to the project, you can also organize them and manage them from the project panel by creating a connection to the external filesystem folder where you scripts are located.

When you connect to an external filesystem folder, the scripts are still located in the external folder, allowing other users to access them from the filesystem and allowing them to be managed with source control.  However, the files appear inside the project as if they were part of the project, allowing them to be easily opened and edited.

To create a connection to a folder on the filesystem:

  1. Go to the File menu and select Create Connection, which will open a panel for creating a connection to a filesystem or to a database.
  2. In the "Create Connection" panel, click on the folder, then enter the path of the folder to which you want to connect.
  3. When you are finished, click the "Connect" button, which add the folder you selected to the project.

To open scripts in the connected folder and save changes to it:

  1. Double-click on the script icon in the connected folder.
  2. Even though the script appear in the project, it's still stored externally.
  3. To save changes to the script, use "Save As" in the File menu, just as you would with any other script that appears on the project.

To save new scripts to the connected folder:

  1. Create the new script.
  2. Go to the File menu and select "Save As".
  3. In the project "Save As" dialog, select the connected folder next to "Save in:", enter the filename, then press "Save"
  4. The newly created script will be saved to the external folder and will appear in the project under the folder.
  5. Of course, you can also save the newly created script using "Save As External".

If you are working with an external connection, you'll sometimes need to refresh the project panel so that it shows newly added files.  The reason for this is that files are sometimes added to the external folder without Kirix Strata's knowledge; for example, this might happen if you are working with other developers on a shared source code repository and other developers add files to the project.