OK, i was just wondering if one would define an alias likeadmin wrote:I don't agree for 2 reasons:Stefan wrote:I think, if an defined placeholder is not used while executing an alias
then the placeholder should be dropped instead used as output.Code: Select all
Resolved alias: ::echo 'Hello, Don! It's !';
1) The placeholder might be not meant to be placeholder but part of the hard input. Not likely but possible.
2) It would be more work for me to remove unknown placeholders. Needs to scan the string for "<@[number]>".
Code: Select all
myAlias=::run <@1> <@2> <@3> <@4> <@5> <@6>
CMD: myTool.exe <curitem> /para /para2
Result: myTool.exe C:\Temp\file.ext /para /para2 <@5> <@6>My suggestion would be like in DOS batch: %1 %2 %3 %4 %5 %6
where the un-used paras are just dropped instead of showing %5 %6 in the output.
- - -
Yes of courseadmin wrote:Try this, else the dot in "Dr. Don" is seen by copytext as concatenator:Stefan wrote:While playing around i have found an problem by using an dot with my "@send" alias (have tried several kind of quoting)Code: Select all
send=::copytext "File <curname> send at <date> to " . '<@1>';
Give me a few hours and i had see it my own
Code: Select all
send=::copytext "File " . quote("<curname>") . " send at <date> to " . '<@1>';
XYplorer Beta Club