I don't think I'm configuring this correctly. Here's my Description.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<ScriptExtensionGroup Name = "Custom Functions">
<ScriptExtension Name = "Global" Author = "Lance Behmer" Version = "1.0" Homepage = "www.flowcal.com">
<Script Name="_global_methods.js">
<RuntimeObject Name="global">
<Method Name="run_app" Routine="run_app">
<Description>
Runs the desired app. If not found, the script kicks out and writes to the log.
</Description>
</Method>
<Method Name="close_app" Routine="close_app">
<Description>
Generic method to close the specified application.
</Description>
</Method>
<Method Name = "excel_state" Routine = "excel_state">
<Description>
Generic method to open and close Excel.
</Description>
</Method>
<Description>Generic global class for methods used by all projects.</Description>
</RuntimeObject>
</Script>
</ScriptExtension>
<ScriptExtension Name = "Excel" Author = "Lance Behmer" Version = "1.0" Homepage = "www.flowcal.com">
<Script Name="_excel.js" InitRoutine="Initialize" FinalRoutine="Kill">
<RuntimeObject Name="Excel">
<method Name="Workbooks" Routine="Workbooks">
Selects the spreadsheet file and workbook to use.
</method>
<Property Name="excel" GetRoutine="getExcel" SetRoutine"setExcel">
Holds the value of "Excel" for manipulation.
</Property>
<Description>Generic class for manipulating Excel.</Description>
</RuntimeObject>
</Script>
</ScriptExtension>
<Description>
Global methods for use in all applications.
</Description>
</ScriptExtensionGroup>And here's the _excel.js contents:
// Global variable to the class, not available to the main script.
var excel ;
function Initialize()
{
//Log.Message("Initialization WORKS!") ;
setExcel() ;
}
function Kill()
{
excel.displayalerts = false ;
excel.SaveWorkspace() ;
excel.displayalerts = true ;
excel.quit() ;
}
function getExcel()
{
return excel ;
}
function setExcel()
{
excel = Sys.OleObject("Excel.Application") ;
}
function Workbooks(path, worksheet)
{
excel.Workbooks.Open(path).Worksheets(worksheet).Activate ;
}
/*
function Cells(row, column)
{
excel.Cells(row,column) ;
}
*/The contents of _global_methods.js file works fine until I add the new Runtime Object and then my "Global" Extension doesn't show up in the project. Is there something I'm missing?