Change index property of file in a directory

I’m trying to change the index property of files in a directory so they show up in a certain order in my DJ software.

I can find the selected file’s index property by using this command.

Definition
index (integer, r/o) : the index in the front-to-back ordering within its container

tell application "Finder" to get index of (selection as alias)

Is it possible to change the index of a file?

That “r/o” means read-only – you can’t modify it.