Page 1 of 1
[implemented] New % parameter for button bar and em_commands
Posted: 2016-07-30, 12:22 UTC
by petermad
It is sometimes NOT wanted that TC automatically sets quotation marks around file and paths when using parameters like %P%N, %P%S and %Cn - espically when you want to test the parameters using DOS.
I would like to suggest two new parameters %y and %Y that should work a little like %x and %X, but %Y should mean that AFTER this point don't set any quotation marks, and %y should mean set quotation marks as usual after this point.
Posted: 2016-07-30, 16:08 UTC
by MVV
I would request third mode: always quote, I know that it will be useful. And I would name it %Q<x>, where <x> is mode (letter or number, no matter, e.g. %Q to reset, %QA to always quote and %QN to don't quote).
Posted: 2016-07-30, 19:22 UTC
by petermad
2MVV
You can to a certain degree do an Aways Quote with my suggestion - just use %Y and then put the Quotes yo want yourself - like %Y "%P%N" "%C1".
But I can see the benifit of your request for lists like %L %F %UL and %WL so that for example &QA "%L" means that all items in the list should be surrounded by quotes. Also for %S an alway quote function could be usefull.
Posted: 2016-07-31, 00:58 UTC
by MVV
Yes, it is mainly for multi-file selections, not for single files.
Posted: 2016-07-31, 22:26 UTC
by Balderstrom
I agree,
Button Parameter "%Q" (
Posted: 07/25/2010)
Although, I would say that I would find it more useful (today) if TC could pass lists of files|folders|paths with an alternate delimiter -- instead of space. I would set the delimiter to \r\n. One might also choose to set it to any one of the obvious illegal characters under windows
Of which, any of the alternate delimiters would be very easy to parse with a pre-processor|handler.
Posted: 2016-07-31, 22:31 UTC
by MVV
Re: New % parameter for button bar and em_commands
Posted: 2023-05-25, 13:45 UTC
by petermad
Implemented as %Q in TC 10.51rc 1
