Scripting FMServer on OS X 10.1
Scripting FMServer on OS X 10.1
- Subject: Scripting FMServer on OS X 10.1
- From: "Sprague, Graham" <email@hidden>
- Date: Thu, 11 Oct 2001 11:40:15 -0400
I am trying to use Applescript to automate the backups in FileMakerServer
5.5 for Mac OS X 10.1. The Sever application is not recognized by the "Open
Dictionary" command in the Script Editor but the FileMaker Server Config.app
has a file in it's Resources directory called "fmserver.scriptsuite"(see
below). Anyone know how to use these commands?
{
AppleEventCode = FMS5;
Classes = {
"NSApplication" = {
"Superclass" = "NSCoreSuite.NSApplication";
"SupportedCommands" = {
"fmserver.stop" = "handleStopScriptCommand:";
"fmserver.start" = "handleStartScriptCommand:";
"fmserver.list databases" =
"handleListDatabasesScriptCommand:";
"fmserver.database pause" = "handleDBPauseScriptCommand";
"fmserver.database resume" = "handleDBResumeScriptCommand";
"fmserver.force close" = "handleForceCloseScriptCommand";
"fmserver.database close" = "handleDBCloseScriptCommand";
"fmserver.database open" = "handleDBOpenScriptCommand";
};
"AppleEventCode" = "capp";
};
};
Commands = {
"database pause" = {
AppleEventClassCode = FMS5;
AppleEventCode = dbps;
Arguments = {};
CommandClass = FMSDatabasePauseScriptCommand;
Type = "";
};
"database resume" = {
AppleEventClassCode = FMS5;
AppleEventCode = dbrs;
Arguments = {};
CommandClass = FMSDatabaseResumeScriptCommand;
Type = "";
};
"force close" = {
AppleEventClassCode = FMS5;
AppleEventCode = fcls;
Arguments = {
message = {AppleEventCode = "data"; Optional = YES; Type =
NSString; };
minutes = {AppleEventCode = "kocl"; Optional = YES; Type =
NSNumber; };
};
CommandClass = FMSForceCloseScriptCommand;
Type = "";
};
"force quit" = {
AppleEventClassCode = FMS5;
AppleEventCode = fqit;
Arguments = {
message = {AppleEventCode = "data"; Optional = YES; Type =
NSString; };
minutes = {AppleEventCode = "kocl"; Optional = YES; Type =
NSNumber; };
};
CommandClass = FMSForceQuitScriptCommand;
Type = "";
};
"list schedules" = {
AppleEventClassCode = FMS5;
AppleEventCode = schd;
Arguments = {};
CommandClass = NSScriptCommand;
ResultAppleEventCode = "****";
Type = "";
};
"run schedule" = {
AppleEventClassCode = FMS5;
AppleEventCode = rsch;
Arguments = {};
CommandClass = NSScriptCommand;
ResultAppleEventCode = "****";
Type = "";
};
start = {
AppleEventClassCode = FMS5;
AppleEventCode = strt;
CommandClass = StartScriptCommand;
Type = "";
};
stop = {
AppleEventClassCode = FMS5;
AppleEventCode = stop;
CommandClass = NSScriptCommand;
Type = "";
};
"database open" = {
AppleEventClassCode = FMS5;
AppleEventCode = opnd;
CommandClass = FMSOpenScriptCommand;
Type = "";
};
"database close" = {
AppleEventClassCode = FMS5;
AppleEventCode = clse;
CommandClass = FMSCloseScriptCommand;
Type = "";
};
"list databases" = {
AppleEventClassCode = FMS5;
AppleEventCode = lbds;
Arguments = {
admin = {AppleEventCode = "kocl"; Optional = YES; Type =
NSNumber; };
};
CommandClass = FMSListDatabasesScriptCommand;
Type = "";
};
};
Name = fmserver;
}