Reorder scripting params

Turns out the order we use to write these is reflected in the action
recorded.