I have vanilla implementations of s2l and l2s, if needed: https://github.com/danomatika/rc-patches https://github.com/danomatika/rc-patches
File paths with spaces work fine as long as you merge them into a single symbol. I simply use l2s for this.
On Nov 13, 2019, at 9:56 AM, pd-list-request@lists.iem.at wrote:
From: "Ingo" <ingo@miamiwave.com mailto:ingo@miamiwave.com> To: "'Winfried Ritsch'" <ritsch@iem.at mailto:ritsch@iem.at>, <pd-list@lists.iem.at mailto:pd-list@lists.iem.at> Subject: Re: [PD] What's the easiest way to cut various symbols to a fixed length? Message-ID: <000c01d599fd$63e44ea0$2bacebe0$@miamiwave.com mailto:000c01d599fd$63e44ea0$2bacebe0$@miamiwave.com>
First of all thank you, Winfried and Tim!
I ended up picking Tim's version with [list fromsymbol], [list split] and [list tosymbol] because it needs less objects. Works perfectly!
However, I had to add a [iemlib/mergefilename _] to eliminate blank spaces in some names. In order to change the names to work with [mergefilename] and [ list fromsymbol] I had to convert a few times with [s2l] and [l2s]. The underscores are converted to spaces again right before going to the LCD display.
Ingo
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/