Re: AS Click Counter
Re: AS Click Counter
- Subject: Re: AS Click Counter
- From: Dave Johnson <email@hidden>
- Date: Fri, 07 Dec 2001 07:40:26 -0500
on 12/7/01 5:30 AM, Simon Topliss at email@hidden wrote:
>
I've written quite a few scripts where I work that automate various
>
processes. I've been asked to add some kind of 'click counter' to each of
>
the scripts so we can record how many times a script is run. That will
>
enable us to calculate time savings per script (manual versus automatic).
>
>
I can't decide on the best approach for this. It would be simple to write to
>
a log file on each of the client macs when each script is run, but then I
>
would have to figure out a way to automatically get the logs from about 100
>
macs each week.
>
>
I think the best approach I have so far would be for me to set up a mac on
>
our network that is able to receive an apple event over IP sent by the
>
scripts when launched. This raises other questions:
>
>
Is there an application out there that can receive apple events over IP that
>
is suitable? Could/should I use an application like BBEdit to receive the
>
calls and write to a log file?
>
>
If I write my own stay open applet and install that on the server, what
>
happens when it receives multiple calls at the same time?
>
>
Any other ideas/suggestions would be really appreciated.
>
>
Simon
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
I think I would save the click count in a property in the script. Include
methods in the script to increment, read and clear the count. Then have a
script on a server that would poll each script on each machine over IP. This
script could be run in the off hours how ever often you need. This script
could write out the results in what ever format you need.