Application Object
Application Object
You can script the Application object's child objects to perform common tasks and to
create toolbars dynamically.
Properties
ActiveDocument
Syntax
ActiveDocument: object (read-only)
The active document. For details, see
Description
ApplicationType
Syntax
ApplicationType: integer (read-only)
Description
The current application type.
Sample ApplicationType script
//**********************************//
// Tests Application.ApplicationType property
// 0 = HomeSite
// 1 = CF Studio
// 2 = JRun Studio
//********************************//
function Main(){
var iAppType;
var sMessage;
with (Application) {
if (IsColdFusionStudio)
else
iAppType = ApplicationType;
switch(iAppType) {
MessageBox('IsColdFusionStudio returns True',
'Application Type', 0)
MessageBox('IsColdFusionStudio returns False',
'Application Type', 0);
case 0: {
sMessage = 'HomeSite';
break;
}
case 1: {
sMessage = 'ColdFusion Studio';
break;
}
case 2: {
sMessage = 'JRun Studio';
break;
"ActiveDocument Object" on page
199
230.
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?