From 1ba8af86e09cd23be8e91522b1716dc477227680 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 18 Jun 2010 19:11:53 +0000 Subject: simplified interface as much as possible, left inlet controls which element is shown, right inlet sets the pattern. also added a float method to select the element in the list based on number svn path=/trunk/externals/ezfile/; revision=13673 --- getfilenames-help.pd | 79 ++++++++++++++++++++++++++++------------------------ 1 file changed, 42 insertions(+), 37 deletions(-) (limited to 'getfilenames-help.pd') diff --git a/getfilenames-help.pd b/getfilenames-help.pd index 1f063b4..ca2759b 100644 --- a/getfilenames-help.pd +++ b/getfilenames-help.pd @@ -1,48 +1,53 @@ -#N canvas 118 89 529 471 10; +#N canvas 341 57 529 471 10; #X msg 19 73 bang; -#X msg 28 364 bang; -#X obj 170 340 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X msg 29 387 bang; +#X obj 172 363 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X obj 12 429 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X obj 12 435 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X msg 176 296 symbol /usr/*; -#X text 160 278 set pattern without no output; -#X obj 28 395 getfilenames; -#X obj 83 318 getfilenames /*; -#X obj 83 339 print; -#X obj 29 428 print; -#X msg 104 185 symbol ~/*.*; -#X text 200 236 relative paths work; -#X msg 115 237 symbol ../*; -#X text 177 163 drive letters work on ReactOS/Windows; -#X msg 90 162 symbol C:/*; -#X text 203 187 all files with a dot in your home; -#X msg 53 137 symbol %USERPROFILE%/*; -#X text 216 138 ReactOS/Windows environment variables work; -#X text 275 257 nested wildcards work on UNIX; -#X msg 132 258 symbol /var/*/*.log; -#X text 186 212 patterns default to path that Pd launched from; +#X obj 29 409 getfilenames; +#X obj 85 341 getfilenames /*; +#X obj 85 362 print; +#X obj 29 434 print; +#X text 234 259 relative paths work; +#X text 211 186 drive letters work on ReactOS/Windows; +#X text 237 210 all files with a dot in your home; +#X text 263 161 ReactOS/Windows environment variables work; +#X text 309 280 nested wildcards work on UNIX; +#X text 220 235 patterns default to path that Pd launched from; #X text 8 5 Get a listing of files based on a wildcard pattern. On UNIX \, it follows glob rules \, on ReactOS/Windows it follows the cmd.exe rules.; -#X text 116 389 With no argument \, it defaults to the contents of +#X text 117 403 With no argument \, it defaults to the contents of the folder of the current patch \, i.e. "/path/to/current/patch/*". ; -#X msg 110 212 symbol *.pd; #X text 54 73 get next file; #X msg 34 99 rewind; #X text 81 98 go back to the beginning of the file list; -#X connect 0 0 7 0; -#X connect 1 0 6 0; -#X connect 4 0 7 1; -#X connect 6 0 3 0; -#X connect 6 0 9 0; -#X connect 7 0 8 0; -#X connect 7 1 2 0; -#X connect 10 0 7 0; -#X connect 12 0 7 0; -#X connect 14 0 7 0; -#X connect 16 0 7 0; -#X connect 19 0 7 0; -#X connect 23 0 7 0; -#X connect 25 0 7 0; +#X obj 51 128 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 1000 1; +#X text 186 128 or choose by position; +#X floatatom 62 149 5 0 0 0 - - -; +#X msg 149 260 symbol ../*; +#X msg 178 319 symbol /usr/*; +#X msg 166 281 symbol /var/*/*.log; +#X msg 144 235 symbol *.pd; +#X msg 138 208 symbol ~/*.*; +#X msg 124 185 symbol C:/*; +#X msg 100 160 symbol %USERPROFILE%/*; +#X connect 0 0 5 0; +#X connect 1 0 4 0; +#X connect 4 0 3 0; +#X connect 4 0 7 0; +#X connect 5 0 6 0; +#X connect 5 1 2 0; +#X connect 17 0 5 0; +#X connect 19 0 5 0; +#X connect 19 0 21 0; +#X connect 22 0 5 1; +#X connect 23 0 5 1; +#X connect 24 0 5 1; +#X connect 25 0 5 1; +#X connect 26 0 5 1; +#X connect 27 0 5 1; +#X connect 28 0 5 1; -- cgit v1.2.1