Changing the File Extension
-
- Posts: 102
- Joined: 13 Nov 16 14:40
- Location: Spain
- Contact:
Changing the File Extension
When renaming files, is there a way to change the file extension to lowercase? For example changing Filename.DNG to Filename.dng. I can see an option to extract the Original File Extension and change that to lowercase, but I can't see a way to remove or change to file extension.
Apple iMac (Retina 5K, 27-inch, Late 2015), macOS Mojave, Photo Supreme 4, Lightroom CC Classic.
Re: Changing the File Extension
This works for me:
Switch to 'edit as text and enter
You can also achieve this in the GUI editor, but above method is quicker
Switch to 'edit as text and enter
Code: Select all
%FileName.%FileExtension{lowercase=y}
Problems searching the forum? Try Google Site Search by adding 'site:forum.idimager.com' to a standard Google search.
-
- Posts: 102
- Joined: 13 Nov 16 14:40
- Location: Spain
- Contact:
Re: Changing the File Extension
Thanks DirkS. You've encouraged me to learn a little about scripting.
Apple iMac (Retina 5K, 27-inch, Late 2015), macOS Mojave, Photo Supreme 4, Lightroom CC Classic.
-
- Posts: 102
- Joined: 13 Nov 16 14:40
- Location: Spain
- Contact:
Re: Changing the File Extension
DirkS - Just tried your code, but it doesn't work as expected.
Example: L1000621.DNG changes to L1000621.dng.DNG
As I said, I cannot find a way to extract just the filename without the extension. I've tried all the Left, Mid and Right variants, but these can't be used when selecting multiple files with varying name lengths.
Anymore suggestions?
Example: L1000621.DNG changes to L1000621.dng.DNG
As I said, I cannot find a way to extract just the filename without the extension. I've tried all the Left, Mid and Right variants, but these can't be used when selecting multiple files with varying name lengths.
Anymore suggestions?
Apple iMac (Retina 5K, 27-inch, Late 2015), macOS Mojave, Photo Supreme 4, Lightroom CC Classic.
Re: Changing the File Extension
DirkS' script works here on Windows. I selected multiple files for the test.
MikeNaylor - after you enter the script as text in the Macro Text window and click on OK to return to the Rename window, where you see a kind of graphical representation of the script / macro, do you see the original file name and the new file name near the top of Rename window? Note - you haven't applied the script / macro yet. Is the new file name L1000621.DNG or L1000621.dng.DNG?
MikeNaylor - after you enter the script as text in the Macro Text window and click on OK to return to the Rename window, where you see a kind of graphical representation of the script / macro, do you see the original file name and the new file name near the top of Rename window? Note - you haven't applied the script / macro yet. Is the new file name L1000621.DNG or L1000621.dng.DNG?
Photo Supreme 3.3.0.2602 (64 bits) (Windows)
-
- Posts: 102
- Joined: 13 Nov 16 14:40
- Location: Spain
- Contact:
Re: Changing the File Extension
The new (suggested) file name is L1000621.dng.DNG. I'm beginning to think this yet another issue that is Mac specific. Its often the case with multi platform software. Windows always seems to get priority support.
Apple iMac (Retina 5K, 27-inch, Late 2015), macOS Mojave, Photo Supreme 4, Lightroom CC Classic.
Re: Changing the File Extension
The graphical representations of the the script / macro in the Rename window on Windows:
Do you see the same, except for the double file extension in the new (suggested) file name?
Do you see the same, except for the double file extension in the new (suggested) file name?
Photo Supreme 3.3.0.2602 (64 bits) (Windows)
-
- Posts: 102
- Joined: 13 Nov 16 14:40
- Location: Spain
- Contact:
Re: Changing the File Extension
Thanks sanphotogn, but that's exactly what doesn't work on a Mac. Your example would appear as N2016F3107.nef.NEF.
Last edited by MikeNaylor on 17 Dec 17 10:02, edited 1 time in total.
Apple iMac (Retina 5K, 27-inch, Late 2015), macOS Mojave, Photo Supreme 4, Lightroom CC Classic.
Re: Changing the File Extension
That's not true. PSU was built from the ground up for both platforms. And PSU uses an identical code base for both platforms...meaning they are exactly the same, feature-wise.MikeNaylor wrote: ↑15 Dec 17 14:41The new (suggested) file name is L1000621.dng.DNG. I'm beginning to think this yet another issue that is Mac specific. Its often the case with multi platform software. Windows always seems to get priority support.
This is a User-to-User forum which means that users post questions here for other users.
Feature requests, change suggestions, or bugs can be logged in the ticketing system
Feature requests, change suggestions, or bugs can be logged in the ticketing system
Re: Changing the File Extension
I experimented some more and there may be a bug. (NB this is on Windows)
If I start in the GUI and select Filename it shows up as a single block in the GUI with the text %Filename.
Renaming preview shows name + extension.
If I then select 'edit as text it shows up as
If I add '{lowercase=y}' to it and confirm the GUI shows 3 blocks: Filename, the dot and FileExtension.
My conclusion is that there's something wrong with the preset (or its handling)
EDIT: the preset is fine. Somehow PSu has a problem whe it processes the preset.
AFAICT 'edit as text' works fine
If I start in the GUI and select Filename it shows up as a single block in the GUI with the text %Filename.
Renaming preview shows name + extension.
If I then select 'edit as text it shows up as
Code: Select all
%FileName.%FileExtension
My conclusion is that there's something wrong with the preset (or its handling)
EDIT: the preset is fine. Somehow PSu has a problem whe it processes the preset.
AFAICT 'edit as text' works fine
Problems searching the forum? Try Google Site Search by adding 'site:forum.idimager.com' to a standard Google search.