Index: trunk/src/scriptbuilder/structures/SimulationScript.java
===================================================================
--- trunk/src/scriptbuilder/structures/SimulationScript.java	(revision 145)
+++ trunk/src/scriptbuilder/structures/SimulationScript.java	(revision 155)
@@ -5,4 +5,5 @@
 import java.io.File;
 import java.io.FileWriter;
+import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
@@ -12,5 +13,9 @@
 import scriptbuilder.structures.ScriptIncident.IncidentFocusedEvent;
 import scriptbuilder.structures.ScriptIncident.SliceChangedEvent;
+import scriptbuilder.structures.events.*;
 import scriptbuilder.structures.units.Unit;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.TreeMap;
 
 /**
@@ -256,7 +261,79 @@
             ex.printStackTrace();
         }
+        try
+        {
+            createAudioDirectory(Paths.get(f.getCanonicalPath()).getParent());
+        }
+        catch(IOException ex)
+        {
+            System.err.println("there was a problem creating the audio directories.");
+        }
+        
+        
         saved = true;
     }
-
+    private void createAudioDirectory(Path path){
+        File f = new File(path.toString()+"/audio");
+        if(!f.exists())
+        {
+            f.mkdir();
+            //scan through to see what is already there and then make changes accordingly.
+        }
+        for(ScriptIncident i : incidents)
+        {
+            if(i!=null)
+            {
+                String name = ((Integer) i.number).toString();
+                File incidentFolder = new File(path.toString()+"/audio/"+name);
+                if(incidentFolder.exists())
+                {
+                    //check to see if there are already files for the given incidents
+                    //not sure how the ordering of the files should be.
+                    //check to see if folder needs filling
+                }else
+                {
+
+                    //create an incidentfolder since one does not already exist
+                    incidentFolder.mkdir();
+                    int fileCount = 1;
+                    for(TimeSlice slice : i.getSlices())
+                    {
+                        for(I_ScriptEvent event : slice.events)
+                        {
+                            if(event.getScriptEventType().equals(ScriptEvent.ScriptEventType.CHP_RADIO_EVENT))
+                            {
+                                //if the event is a chp radio event
+                                //then add the dummy file to the subdirectory created
+                                CHPRadioEvent radioEvent = (CHPRadioEvent) event;
+                                
+                                String output = radioEvent.toScriptFile();
+                                
+                                File newAudioScript = new File(path.toString()+"/audio/"+name+"/"+name+fileCount+".txt");
+                                
+                                fileCount++;
+                                try
+                                {
+                                    newAudioScript.createNewFile();
+                                    BufferedWriter bw = new BufferedWriter(new FileWriter(newAudioScript));
+                                    bw.write(output);
+                                    bw.flush();
+                                    bw.close();
+                                }catch(Exception e)
+                                {
+                                    System.err.println("there was a problem creating your text files");
+                                }
+
+                            }
+                        }
+                    }
+
+                }
+            }
+
+            
+        }
+        
+        
+    }
     @Override
     public String toXML()
