-
Bug
-
Resolution: Fixed
-
Normal
-
2.11
-
None
-
macOS Monterey 12.7.4
The file naming preview of a script ending in %_filename% displays as "_mp3", when it should display as a filename like "ticket_to_ride.mp3" or "track05.mp3".
How to reproduce
- Run Picard. Picard menu… Preferences…. Tab "File naming". Check box "Rename files when saving".
- Click "Edit file naming script…" button. File naming script edit window appears.
- Enter a naming script which has various directory path values, but ends in "/%_filename%".
- Look at the box at the bottom of the script editor, labelled "After".
Observed behaviour
Both "After" entries, corresponding to "ticket_to_ride.mp3" and "track05.mp3", in fact end in "/_mp3".
Expected behaviour
Both "After" entries end with their respective filenames, i.e. "/ticket_to_ride.mp3" and "/track05.mp3".
Discussion
When I enter any text in the script between the "/" and "%_filename%", the preview ending changes from "_mp3" to ".mp3". For instance, when I change the end of the script to "/P%_filename%", the "After" entries change to "/P.mp3".
Possibly related: PICARD-2219, Empty file naming script causes files to be renamed to _ext. Fixed in 2021 with Picard version 2.6.3.
According to Picard docs "File Variables", "_filename" contains "The name of the file without extension". In my observation Picard 2.11 includes the extension in the value of "_filename".
- has related issue
-
PICARD-2219 Empty file naming script causes files to be renamed to _ext
- Closed