See p_basename in the rc-patches: https://github.com/danomatika/rc-patches https://github.com/danomatika/rc-patches
On Sep 29, 2019, at 5:55 PM, pd-list-request@lists.iem.at wrote:
From: Pierre Alexandre Tremblay <tremblap@gmail.com mailto:tremblap@gmail.com> To: Pd-List <pd-list@lists.iem.at mailto:pd-list@lists.iem.at> Subject: [PD] Name of current path's file Message-ID: <C00F76A7-E9C7-4BAE-9B2A-515428872367@gmail.com mailto:C00F76A7-E9C7-4BAE-9B2A-515428872367@gmail.com> Content-Type: text/plain; charset=utf-8
Dear all
I am trying to recover programatically the name of the patch file I’m in. The new amazing [pdcontrol] object gives me its path, but I cannot seem to find a way to get the file name, which I can then use programatically… for instance in many help files to call a given html document called the same name in another folder.
Does it make sense? Vanilla options only please!
p
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
On Sun, 2019-09-29 at 21:32 +0200, Dan Wilcox wrote:
See p_basename in the rc-patches: https://github.com/danomatika/rc-patches
This is helpful when you have a full path including a filename and you want to split the filename from the path. I think what the original poster wants is to know about the patch's own filename (or full path including filename). [pdcontrol] returns only the current directory of the patch without its name.
Roman