Author Topic: $LCut & $RCut functions  (Read 5493 times)


  • Sr. Member
  • ****
  • Posts: 679
Use case: I created an external tool entry for CUETools.  Essentially, it is C:\Program Files\CUETools\CUETools.exe "<Path>" (application_path and parameter respectively).  However, the terminal "\" messes up CUETools, e.g.  CUETools.exe "D:\foo\" doesn't work whereas CUETools.exe "D:\foo" does.

I believe a function that cuts the number of characters a user assigns while returning the rest of the field will fix his issue,  e.g. $RCut(<Path>,1).  Basically, it is the opposite of $Left and $Right functions.

Thus, the working CUETools entry will be C:\Program Files\CUETools\CUETools.exe "$RCut(<Path>,1)".

This is nothing critical, just something that would add convenience for me and, hopefully, for others.

Note: I hope this doesn't confuse users of the cut command so often used in bash scripting.
Last Edit: June 03, 2016, 08:54:58 PM by ssri


  • Sr. Member
  • ****
  • Posts: 7280
Am I late to the party?

Recently I had a little challenge where I was looking to do exactly this.
It was resolved in a slightly more complicated manner, but this would be nice to have.


The Incredible Boom Boom

  • Sr. Member
  • ****
  • Posts: 1087
The Additional Tagging and Tools plugin has $CutLeft() and $CutRight() functions.