Script @nodeselect

I already figured out that @nodeselect does not work in a script.

I have this old script that works fine. However, I would like to change it in a way that the file remains selected so as to apply some other rename.

The script starts with:

Rename PATTERN="" TO=""
@script vbscript
Option Explicit

then the rest...

I added Set cmd.deselect = false as a 3rd line but got an error

06-11-2022 10:03 Option Explicit
06-11-2022 10:03 ^
06-11-2022 10:03 Expected statement (0x800a0400)
06-11-2022 10:03 Parse error - script aborted

How to solve this?


@nodeselect will work with that button. Put it on the first line, so the rename command is on the second line.

Thank you!
When I ran into errors (adding it to line 3 or 4), I assumed that it would not work. Searched and found things like cmd.deselect = false, which wasn't working either...
Should have asked this in the first place... :slight_smile:
Thanks again.

The command isn't really a script. It's running the normal Rename command, and giving that a rename script to run.