Separator for Elements in $A token.

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

ottop
New Member
Posts: 1
Joined: 2016 May 01, 13:16

Separator for Elements in $A token.

Post by ottop »

I am trying to pass several file names by the $A token. The list is separated by a space. The program that I am sending the list to ( https://www.advancedrenamer.com/), however, expects a ';' separator. It would be nice to have some control over the list separator of $A.
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1258
Joined: 2005 Oct 16, 19:09

Re: Separator for Elements in $A token.

Post by FrizzleFry »

I have a user command for Advanced Renamer that uses the $A token just fine...

>"D:\tools\Advanced Renamer\ARen.exe" $A

but it looks like it is the command line version that requires the ';' between files...
you might be able to use the -items option which gets the files from a list of files...
x2 has a token that sends the selected file names to a file list but it is not documented...

the token to send selected files to a file list is $>
so instead of using

-files $A

you could use

-items "$>"

you might not need or should not have the quotes around $>, it depends on how arenc deals with file names with spaces from the list


another way is to use some kind of script as an intermediary which takes the list from x2, adds the ;s and runs the arenc command