That’s working now, Tim.

I did see already that the [loadbang] was missing.
However, working with absolute directories gets really complicated this way.

Especially if you want to have the same Patch or abstraction working on
several platforms. I would suspect this version might only work on windows
correctly?

Ingo

________________________________________
Von: tim vets [mailto:[email protected]] 
Gesendet: Dienstag, 8. November 2011 12:35
An: Ingo
Cc: Hans-Christoph Steiner; pd list
Betreff: Re: [PD] clear console command + create folder from Pd?


2011/11/8 tim vets <[email protected]>

2011/11/8 Ingo <[email protected]>

>>> - is there any object that allows to create a folder (in all OSs)?
>>> I wanted to save files to a non-existing folder, but Pd doesn't
>>> create one.
>>
>> [mkdir $1(--[popen] ?
>
>I wonder if that works on Windows?  Anyone tested it?  Someone could
>probably make  [mkdir] object quite quickly using pdlua or tclpd.
>
>.hc
I just tested it on WinXP. I could create a directory in the folder of the
patch but not a subdirectory. Not sure if it has anything to do with the
slash vs. backslash issue.
Ah, true, I didn't think of that.
I found a workaround though (see attachment), but it's getting absurdly
complicated for just doing mkdir...

and I forgot to add a loadbang, you have to click the [symbol( connected to
[l2s] first... 

 
Ingo


_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list


#N canvas 1260 409 345 335 10;
#X obj 240 289 popen;
#X obj 95 93 makefilename %c;
#X obj 67 223 l2s;
#X obj 67 161 pack s s s;
#X msg 136 206 symbol;
#X obj 67 252 prepend mkdir;
#X obj 67 289 print;
#X msg 95 72 92;
#X msg 124 140 symbol testdd;
#X msg 67 113 symbol testd;
#X obj 67 52 t b b b;
#X msg 240 64 mkdir testd;
#X obj 67 32 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 89 5 1 make directory 'testd' in current;
#X obj 67 6 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 86 28 2 make subdirectory 'testdd' in 'testd';
#X obj 136 186 loadbang;
#X connect 1 0 3 1;
#X connect 2 0 5 0;
#X connect 3 0 2 0;
#X connect 4 0 2 1;
#X connect 5 0 6 0;
#X connect 5 0 0 0;
#X connect 7 0 1 0;
#X connect 8 0 3 2;
#X connect 9 0 3 0;
#X connect 10 0 9 0;
#X connect 10 1 7 0;
#X connect 10 2 8 0;
#X connect 11 0 0 0;
#X connect 12 0 10 0;
#X connect 14 0 11 0;
#X connect 16 0 4 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to