In the version 1.11 update, I'd forgotten from my notes to update a usage message for the -r (replace) transformation. I've posted the correction in the first post above, and it will be available in the next update. It reads:
[quote="MrC"] Note: Version 1.11 requires a module update in ActivePerl. After installing ActivePerl, open a Windows command shell, and enter the command:
ppm update date-manip
and hit Enter. When the update is complete, you can exit out of the command shell.[/quote]
MrC - this update fails as shown on my W7-64 system and consequently v1.11 does not work.
v1.10 is OK with the same version of ActivePerl - ActivePerl-5.16.3.1604-MSWin32-x64-298023.
I tried uninstalling and reinstalling ActivePerl. Same outcome.
Any suggestions?
You can run ppm with no arguments, and it will launch the GUI. Then, you can type date-manip into the search box; it should list version 6.46, which you can select to install if the command above for some reason didn't work (though, I'm not sure why it wouldn't).
In case anyone else falls foul of this, there were two problems..
[ol][li]I had installed ActivePerl to C:\Program Files\Perl64 (which is R/O) instead of the default C:\Perl64[/li][li]The date-manip package was not installed and so could not be updated[/li][/ol]
I uninstalled ActivePerl and reinstalled to the default location. That solved the R/O problem. I then used the PPM GUI to install date-manip and all is now well with v1.11.
I initially tried with Active Perl 5.18.2.1802 x64, but this caused Opus to crash when the rename preview was enabled (Jon and Leo informed). When I uninstalled Active Perl 5.18.2.1802 x64 and installed 5.16.3.1604 x64, the crash disappeared.
I had same problem as aussieboykie in that date-manip was not installed, and had to run ppm install date-manip, so you might want to mention this in the first post MrC. One other suggestion to help beginners, would be to explain that they need to import the .orp file using the rename dialog File menu, and then to create/save a preset (eg. named "_Dynamic Renamer 1.11")
I was trying to use the -+1 transformation on file of the form filename_001.ext but it removes the leading zeros so ends up changing it to filename_2.ext instead of filename_002.ext. Would be great if it kept leading zeros.
To workaround the issue, I tried to chain the -### transformation but couldn't get the required result.
Also, the script doesn't remove any leading spaces from the New name field, so it doesn't recognise " -+1".
"... The script requires ActivePerl 5.16 (not 5.18)"
The link in your post gets you to the download site showing 5.18 and 5.20 only.
v5.16 is available in Business Edition and Enterprise Edition but I am not sure they are for free.
I've known about this for a while, and was awaiting for someone to mention it, or be affected by it. Unfortunately, ActivePerl pulled the old release, and has bumped their versions. They do charge for the archived versions (a pure money grab), so I'll have to check that the required modules are built for the newer versions of Perl (when I wrote Dynamic Renamer, they were not yet ready). I'll take a look this weekend.
Edit: The modules are available. I just have to verify the code is 5.18 or 5.20 compatible.
Now, I don't know which versions you have available at yours. Maybe you can verify the checksums?
Alternatively, maybe.. there is a download-location on the forum somewhere where you can store 'your'
ActivePerl? But likely that requires okay from the administrator. Just a suggestion.
So, the latest version of Dynamic Renamer is indeed compatible with v5.18.4.1803 / v5.20.1.2000 ?
[/quote]
Well, so far, it isn't looking too good.
The 64-bit version of ActivePerl 5.20 causes DirectoryOpus 11.12.04 to crash upon selecting a perlscript rename script.
The 32-bit version of ActivePerl 5.20 causes DirectoryOpus to emit to the log the diagnostic "Script Engine 'perlscript' could not be opened".
Given the unfriendliness here towards anything not JScript or VBScript, I'm not hopeful this will get investigated or resolved.
Version 5.18 does not have certain required modules available, so that's a no-go.
Reinstalling 5.16 works fine, so I'd say the only option currently is that version.
I'm not going to post the binaries as this might violate some ActiveState terms. The 64-bit version of 5.16.3 you reference at CNet is identical to the one I have, which came from ActiveState's site. I'll update the links in post #1 to refer to those links - thanks for finding them.
It's crashing in PerlSE.dll in the call to IActiveScriptParse::InitNew. You'll have to report this to ActiveState if you want it "investigated or resolved"
Note: ActiveState has updated ActivePerl 5.20 to version 5.20.2.2001. This restores the ability for ActivePerl to work with Windows Scripting hosts. I've updated post #1 to reflect this version as the new recommend version.
I'll be updating Dynamic Renamer shortly with a few bug fixes and features.
I am unable to install date-manip. It is not found by PPM or PPM GUI.
Going to ActivePerl web site - indicates that date-manip 'fails build' on both Win32 and Win64 for Perl 5.22. Using the url ActivePerl Downloads - Perl Binaries for Windows, Linux and Mac defaults to the 5.22 build.
I plan to uninstall all of 5.22 - download 5.20 and then see if this solves the date-manip issue. As it stands now - Rename Import fails without date-manip on 5.22