Well I'm glad you guys liked this!  I added the optimizations Ray suggested
and the other methods you guys requested.  So now you have the following
methods:

ApplicationManager
getApp(sAppName) - returns the named application

getAllAppsQuery() - returns a Query object containing all app names on the
current server

getAllAppsStruct() - retruns a structure containing all apps on the current
server (including all their app variables)

getAppVariable(sAppName, sVarName) - gets a variable from any app on the
server

setAppVariable(sAppName, sVarName, sValue) sets a variable on any app on the
server

Again, feel free to share, post, make suggestions, etc.  If you add anything
cool, let me know. 

Cheers,
Roland Collins


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Nolan Erck
Sent: Wednesday, March 03, 2004 1:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Setting an app variable on ANY app on the server

I second the request for that.  And if someone has code that not only shows
the applications in existence, but also a rough guess to the amount of
memory a specific application is using on the server, that'd be of interest
too.



-----Original Message-----
From: Barnaby Relph [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 9:59 AM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Setting an app variable on ANY app on the server


This looks to be very handy. Do you or anyone else have code to list
applications in existence on a server?


Barny

----- Original Message ----- 
From: "Roland Collins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 03, 2004 5:26 PM
Subject: [CFCDev] Setting an app variable on ANY app on the server


> Hi all,
>
> We needed to be able to get and set an application variable on ANY
> application on our server, so I whipped up these functions.  Thought they
> may be of use to some of you.  Feel free to share :)
>
> Cheers,
> Roland
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]

Attachment: ApplicationManager.cfc
Description: Binary data

Reply via email to