I wrote one called [folder_list] in "hcs", but I think there are others too.

.hc

On Oct 4, 2009, at 2:52 PM, James Dunn wrote:

That reminds me of something - is there something like this to get the number of files in a directory?

thanks

James

2009/10/4 Hans-Christoph Steiner <hans@at.or.at>

[getdir] may be what you want.  Its in 'ggee' and included in Pd-extended.

.hc


On Oct 4, 2009, at 1:45 PM, Orm Finnendahl wrote:

Hi,

sorry, this is probably trivial, but I can't seem to find the
solution: I use a self written external in a pd patch, which on setup
loads initialization data from subdirectories with relative pathnames
to the directory the patch lives in.

Loading the pd patch from a terminal within the patches' directory
leads to pd having this directory as the current directory with all
relative paths working from there. Loading the patch with
double-clicking it will lead to pd starting from it's default
directory and the relative pathnames don't work from within the
external's setup routine.

How is it possible to determine and then set pd's current/default
directory to the path, the external's root canvas is located at from
within the external?

--
Orm

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



----------------------------------------------------------------------------

"Making boring techno music is really easy with modern tools," he
says, "but with live coding, boring techno is much harder." - Chris McCormick






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




----------------------------------------------------------------------------

"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity."        -John Gilmore