Index: /trunk/FACT++/scripts/Main.js
===================================================================
--- /trunk/FACT++/scripts/Main.js	(revision 15292)
+++ /trunk/FACT++/scripts/Main.js	(revision 15293)
@@ -7,4 +7,13 @@
 dim.log("Start: "+__FILE__+" ["+__DATE__+"]");
 
+// This should be set in dimctrl.rc as JavaScript.schedule-database.
+// It is sent together with the script to the dimserver.
+// If started directly, it has to be set after the command:
+//
+//   .js scripts/Main.js schedule-database=...
+//
+if (!$['schedule-database'])
+    throw new Error("Environment 'schedule-database' not set!");
+
 //dimctrl.defineState(37, "TimeOutBeforeTakingData", "MCP took more than 5minutes to start TakingData");
 
@@ -35,5 +44,5 @@
 */
 
-include('scripts/ReadSchedule.js');
+include('scripts/getSchedule.js');
 
 var observations = [ ];
