change arangement of displays with applescript and other like cscreen

Hello there,

I have the following problem:

I have a G5 PowerMac running an exhibition from a Macromedia Director application.
The computer has 3 videocards, allowing for 6 porjectors to be connected.
There are six Panasonic projectors connected to the computer.
Upon restart the computer starts the differents screns up in different resolutions ( 2 are 800 x 600, two other a very strange widescreen, and 2 are the normal 1024 x 768). I have been able to solve this problem with cscreen and applescript.
But the computer also starts up in the wrong arrangement of displays. I have not been able to solve this and was hoping anybody knows a way. I have been able to swap screen 1 and 2 by moving the main display to screen 2, also cscreen and applescript.

I would really appreciate some help, does any one know the problem and maybe the solution?

Thanks!

Olga

Hi Olga and welcome to MacScripter

you can change the index of displays by moving the menu bar to the specified display.
This line moves the menu bar to display 2 (which afterwards becomes display 1)

do shell script "cscreen -s 2 -p"

Thanks so much Stefan,
I have tried that and it works, the only things is, I need to change the order of all six displays, so for instance: making display 5 to 2, and 1 to 5 and 2 to 4 etc.
do you know a solution?

Olga

Unfortunately not, and I can’t even test anything with just 2 displays :wink:

I guess I have to keep loking then, thank you for your help! If I find an answer I will post it for who ever might be curious.