[PD] filename from path

Matt Barber brbrofsvl at gmail.com
Mon Nov 30 22:28:11 CET 2015


The newest vanilla versions have [list fromsymbol] and [list tosymbol]. If
you write it the output of [list fromsymbol] into an array using [array
set] you can find the last / character (ascii 47), [array get] the rest
([list length] will help you figure out how much to get), and turn it back
into a symbol with [list tosymbol].

On Mon, Nov 30, 2015 at 4:08 PM, Simon Iten <itensimon at gmail.com> wrote:

> hi list,
>
> is it possible to get only the filename from openpanel? (in vanilla)
> or to extract the filename from the whole path? (i know this was not
> possible in earlier versions, but maybe it works somehow now)
>
> cheers
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151130/b66faaa5/attachment.html>


More information about the Pd-list mailing list