Bug: tag File Line replaces colon with dash!

Advanced Renamer forum
#1 : 04/07-25 19:43
Chris
Posts: 9
Apply the script:

return app.parseTags( '<File Line:1>' ) == ":";

on a file "colon.TXT" containing just a colon character.

(User Guide says: <File Line:x> Will insert a line of text from the file. The parameter x is the line number, starting from 1. Note, do not use on binary files.)

Expected: New Filename true.TXT
Observed: New Filename false.TXT

A fix would be much appreciated! But given this would break compatibility with existing scripts, it needs to be on a settings checkbox.

Also note a bug with this forum. <File Line:1> in title of this post gets silently removed.

edited: 04/07-25 19:53
#2 : 04/07-25 23:27
Delta Foxtrot
Posts: 506
Reply to #1:

Maybe check your "Options / Settings / Renaming / Replace unsupported with:" setting. It might
have a dash in the field.

EDIT: This forum is not state of the art, but it [mostly] gets the job done. For instance, don't use the letter i as a counter var against an array in scripts you post... square brackets plus i = italics! and no brackets! :)

Best,
DF

edited: 04/07-25 23:35