Illustrator - move Swatch to different index position

Hi Chaps,

In Illustrator CS4, I need to move a swatch that already exists in the swatch palette from position index 6 to index 3.

I’ve tried a simple command such as:

tell document 1 of application “Adobe Illustrator”
set index of swatch 6 to 3
end tell

but I get the error:
error “Adobe Illustrator got an error: Property is read/only and cannot be changed” number 1282

also tried:

tell document 1 of application “Adobe Illustrator”
move index of swatch 6 to 3
end tell

but I get the error:
error “Adobe Illustrator got an error: Can’t make or move that element into that container.” number -10024

Grateful for any help.

If its easier - I’d like to be able to say “Move swatch “Cyan” to index 3”

Just curious. why??

I have an ID box to add to an artwork using an applescript, and I need to make sure the colours in the swatch palette are in a particular order, and I want to add this into the script at the start - rather than relying on unreliable human operators to do it before starting the script !