more get() parameters for base name and base/ext

Features wanted...
Post Reply
Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

more get() parameters for base name and base/ext

Post by Stefan »

To make scripting more easier i want to suggest some new get() parameters

"SelectedItemsBaseNames", [separator=CRLF], [pane=a]
to get the base name only

"SelectedItemsNameParts", [separator=CRLF], [pane=a]
or better
"SelectedItemsBaseExt", [separator=CRLF], [pane=a]
to get base and extension but separated by an invalid char for an file name (i suggest here the question mark '?')
for further process with gettoken()

So we don't have to explain the use of report()
and also use this commands by '<get xyz>' too.

So this could be seen as an enhancement for the use of the foreach() command.


Examples, for an list like:
fileA.ext
file2.ext
File3.ext.bak


we will get with:

get("SelectedItemsBaseNames", "<crlf>");
fileA
file2
File3.ext


get("SelectedItemsNameParts", "<crlf>");
fileA?ext
file2?ext
File3.ext?bak


.

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: more get() parameters for base name and base/ext

Post by yusef88 »

Stefan wrote:To make scripting more easier i want to suggest some new get() parameters
get("SelectedItemsBaseNames", "<crlf>");
fileA
file2
File3.ext
.

Code: Select all

Report("{BaseName}<crlf>", 1);
seems that "report" differs from "get" so +1 for this wish

Post Reply