--On 12 September 2002 15:34 -0400 "Paul M. Hill" 
<[EMAIL PROTECTED]> wrote:

> I would be very interested in how you do this task. Please post it here.

Here is the rotation stuff, we run this to rotate between 4 of the 18 maps 
we have.

The scripts are Applescripts...

Start Rotate
This script employs two functions that come with Akua Sweets (see below) to 
rotate a set of screens, which are 'reposition window' and 'activation'. 
Basically this script is a loop which constantly counts to the number of 
screens which you want rotated. So if you want four screens rotated it 
counts to four with ten second gaps then sets itself back to one. As it 
counts to four however it will bring the corresponding 'map' to the front. 
If you don't stop this script when you attempt to do any work on the box 
any windows that you bring up will be lost after 10 seconds and replaced by 
a window that the script is trying to rotate. The only way to get this back 
to normal is to find out what the window was called that has been hidden 
and then edit the AppleScript to bring it back to the front rather than a 
map, as it is impossible to do it yourself.

Here is some sample code with our map names in it:


global windowDef

set windowDef to 1

delay 20

on idle

set windowDef to windowDef + 1

if windowDef > 4 then

set windowDef to 1

end if

if windowDef = 1 then

tell application "InterMapper" to reposition window "POP - HW" with 
activation

else if windowDef = 2 then

tell application "InterMapper" to reposition window "POP - London TH" with 
activation

else if windowDef = 3 then

tell application "InterMapper" to reposition window "POP - Others" with 
activation

else if windowDef = 4 then

tell application "InterMapper" to reposition window "POP - Core Backbone" 
with activation

end if

return 10

end idle





Stop Rotate
This is a very simple script which tells the Finder to exit the 'Start 
Rotate' script.

Here is the code

tell application "Finder" to quit application "Start Rotate"


Akua Sweets

This should be downloaded from 
http://www.akua.com/Software/AkuaSweets/index.html and installed.
Akua Sweets is a set of over 200 scripting additions, which add enhanced 
functionality to AppleScript by providing functions not normally available 
in the language.


Hope this is useful. I will post the failover notes soon. It is much easier 
to follow now we are using FTP to do the file copies. We use 1 box as a 
core 'server' to which changes are made and that then populates the other 
box(es). The secondary box watches for the first to fail, then takes over 
serving the maps. The alarms indicate which box they are coming from just 
in case the NOC or duty engineer fails to see the 'primary server down' 
alarm.

Raza

____________________________________________________________________
Note: To unsubscribe from this mailing list, please send email to:
<mailto:[EMAIL PROTECTED]> Thanks!

Reply via email to