Button to change columns of a folder

I would like to have a button that allows to change folder's format.
-Change view
-Grouping
-Change columns displayed.

The first 2 are very easy
i had also found the command to add and remove columns (i didn't create the button and now i don't find them anymore) but i couldn't understand if i also can set a posizion and size for those column

Example

the folder now has (from left to right)
Filename (width=auto) / Dimensions / Artist (script) / Label

the button should change to
Artist (script) / Label / Filename (width=1)

The documentation for the Set command's COLUMNSADD argument describes how to set the positions and sizes of columns. The same can be used with COLUMNSTOGGLE.

i'm trying but there is something wrong,maybe a bug?

the command
Set COLUMNSREMOVE=sizeauto
Set COLUMNSADD="scp:RegExp Columns/Titolo"

Adds the the column i want but not in the desired position
i tried,because i read the example
Set COLUMNSREMOVE=sizeauto
Set COLUMNSADD="scp:RegExp Columns/Titolo"(2)

But column doesn't appear.
But if i try
Set COLUMNSREMOVE=sizeauto
Set COLUMNSADD=created(2)

I get the column in the right position.
Maybe script columns doesn't accept the position?

The (2) needs to go inside the quotes, not outside.

not working anyway

It works fine with script columns. I don't have that script installed, but this works with another one I have:

Set COLUMNSADD="scp:Max Size Column/AvgSizeRec(2)"

That will insert the column as the 3rd column. (Position 0 = 1st column, 1 = 2nd, 2 = 3rd, etc.)

Yes it seems RegExp fault
i tried with another script column (frameheight) and it works

I did a quick test, this should work.
When using the regexp dialog, the add, remove, and apply buttons run these same commands. The apply button will remove and re-add the column in the same position if it is already displayed. This is the same as the command as you are trying to use.

  • Add
    • Set COLUMNSADD "scp:RegExp Columns/Shoot Processed Relative"
  • Remove
    • Set COLUMNSREMOVE="scp:RegExp Columns/Shoot Date"
  • Refresh
    • Set COLUMNSREMOVE="scp:RegExp Columns/Shoot Date"
    • Set COLUMNSADD "scp:RegExp Columns/Shoot Date(5)"

Attached is a version 1.11 test tweaked a little to improve the logging of the commands. Try those buttons in the dialog to confirm what commands are being run and if they work as expected. Open the log panel Set UTILITY=OtherLog,On to see what is happening.

It could be the name of the column you have is not the same as what is displayed. By using the dialog to apply changes (even if you make now changes) you will be able to get the command from the logs (as I did for the above list).

RegExpColumns.js.txt V1.11 test (45.0 KB)