getmusicbee.com

General => MusicBee Wishlist => Topic started by: theta_wave on June 03, 2016, 08:44:30 PM

Title: $LCut & $RCut functions
Post by: theta_wave on June 03, 2016, 08:44:30 PM
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.
Title: Re: $LCut & $RCut functions
Post by: hiccup on October 10, 2021, 07:40:30 PM
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.

+1

Title: Re: $LCut & $RCut functions
Post by: The Incredible Boom Boom on October 11, 2021, 02:20:55 AM
The Additional Tagging and Tools plugin has $CutLeft() and $CutRight() functions.