Quote:
Originally Posted by mgpai
This script will replace the characters just before they are added to linkgrabber list. If you want to replace them after they are added to JD, you will have to use a different script with context-menu button pressed trigger.
Code:
/*
Replace space with underscore in filenames
Trigger : Packagizer Hook
*/
try {
if (state == "BEFORE") {
link.setName(link.name.replace(/\s/g, "_"));
}
} catch (e) {};
|
How do I adapt this to change all underscores "_" to "." in a filename
Thanks no need to answer this now as I have worked out for myself