Hi,
downloaded this script here a long time ago, but with v10 it doesn't work anymore:
Remove from left:
Rename TYPE=files REGEXP PATTERN ".(.+)(\..*)#{dlgstring|Anzahl der von LINKS zu entfernenden Zeichen:}" TO "\1\2" AUTORENAME
Remove from right:
Rename TYPE=files REGEXP PATTERN "(.+).(.*)(\..*)#{dlgstring|Anzahl der von RECHTS zu entfernenden Zeichen:}" TO "\1\3" AUTORENAME
Could someone update it for me?
Leo
August 1, 2011, 8:44pm
2
Since they both work fine for me in v10, and you didn't say how they don't work, or what happens when you try to use them, I'm not sure what to suggest.
Nothing happens. Select a file, remove some chars, file will be deselected without any changes.
Edit: Does not work on folders only, I don't remember if this was possible before.
Jon
August 1, 2011, 10:18pm
4
Your regex is specifically looking for something with a dot in the filename.
Leo
August 1, 2011, 10:36pm
5
The command also has TYPE=files in it, so it would ignore folders even if they had dots in their names.
If you want it to work on files or folders with or without a dot in the name, try changing the button command to this:
Rename REGEXP PATTERN ".(.+)#{dlgstring|Anzahl der von LINKS zu entfernenden Zeichen:}" TO "\1" AUTORENAME
edit: Actually I simplified it ever further from my first post.
Jon
August 1, 2011, 11:33pm
7
For files though that will result in the file extension being lost, which probably isn't desired.