Thanks, that worked perfectly! Much better than my solution of counting the characters in the filename and subtracting it from the path with stripfilename!


On 27 October 2013 20:21, peiman khosravi <peimankhosravi@gmail.com> wrote:
Hello,

Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

Best,
P



On 27 October 2013 19:56, Antonio Roberts <antonio@hellocatfood.com> wrote:
I want to be able to strip the file name from a path of a file opened via [openpanel]. I've looked into using [stripfilename] but that'd only work if the directory or file name length were the same in every situation.

Can anyone help?

Thanks

--
============================
antonio@hellocatfood.com
http://www.hellocatfood.com
============================

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





--
============================
antonio@hellocatfood.com
http://www.hellocatfood.com
============================