Re: [PD] create folder implementation

2010-01-16 Thread IOhannes zmölnig
Matteo Sisti Sette wrote: Jack escribió: Maybe not nice, but it should work. Thank you very much, that's great. It does work, and I think it is as nice as it can be. However, unfortunately, it is unsafe for my purposes because of the [delay 0]. Well I guess it's more correct to say it is

Re: [PD] create folder implementation

2010-01-16 Thread Roman Haefeli
On Sat, 2010-01-16 at 11:16 +0100, IOhannes zmölnig wrote: Matteo Sisti Sette wrote: Jack escribió: Maybe not nice, but it should work. Thank you very much, that's great. It does work, and I think it is as nice as it can be. However, unfortunately, it is unsafe for my purposes

Re: [PD] create folder implementation

2010-01-16 Thread Matteo Sisti Sette
IOhannes zmölnig escribió: if you use [sys_gui] then yuo will _always_ have to live with a delay. i can only repeat myself, that the pd-gui (which executes the [sys_gui] commands) and the pd-core are asynchronous applications. this is by design. Yes of course, it can't be any other way. I

Re: [PD] create folder implementation

2010-01-16 Thread IOhannes m zmölnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matteo Sisti Sette wrote: I can only try 2 guesses: A) it is because of how the operating system manages processes (i.e. the delay 0 has a similar role to a sleep 0) - but then, I would expect an amount of unpredictability B) because of the

Re: [PD] create folder implementation

2010-01-16 Thread Matteo Sisti Sette
Hi, sorry for the delay, and thank you for the interest. colet.patr...@free.fr escribió: Selon Matteo Sisti Sette matteosistise...@gmail.com: I guess that's how it is supposed to work. not really, there was an example attached with it, it's attached again Ok sorry, I had had a look at

Re: [PD] create folder implementation

2010-01-16 Thread colet . patrice
Hello, this abstraction was a dummy method to see how the tcl message reception could be handled, I don't know why it doesn't write a file, it works on my computer, but only if there is something to write, so it should be done with [add bim bam boum(--[textfile] before writing the file. I'm

Re: [PD] create folder implementation

2010-01-14 Thread Matteo Sisti Sette
Hans-Christoph Steiner escribió: I wrote an external called [sys_gui] that allows you to send Tcl to the GUI from Pd. While you can't (yet?) use {} you can use and [] and that gets you a long way. GREAT! I think that solves all my problems :) -- Matteo Sisti Sette matteosistise...@gmail.com

Re: [PD] create folder implementation

2010-01-14 Thread Matteo Sisti Sette
Matteo Sisti Sette escribió: Hans-Christoph Steiner escribió: I wrote an external called [sys_gui] that allows you to send Tcl to the GUI from Pd. While you can't (yet?) use {} you can use and [] and that gets you a long way. GREAT! I think that solves all my problems :) Oh no

Re: [PD] create folder implementation

2010-01-14 Thread IOhannes m zmoelnig
hi removed all those who receive this mail anyhow, because they are subscribed to the list. Matteo Sisti Sette wrote: Matteo Sisti Sette escribió: Hans-Christoph Steiner escribió: I wrote an external called [sys_gui] that allows you to send Tcl to the GUI from Pd. While you can't (yet?) use

Re: [PD] create folder implementation

2010-01-14 Thread colet . patrice
Selon Matteo Sisti Sette matteosistise...@gmail.com: Any suggestions on how to check for the existence of a directory? it would be childish if [sys_gui] or another object would retrieve tcl console output, then [puts [glob -type d My-Dir] would do the trick, or just a bang when tcl command is

Re: [PD] create folder implementation

2010-01-14 Thread IOhannes m zmoelnig
colet.patr...@free.fr wrote: Selon Matteo Sisti Sette matteosistise...@gmail.com: Any suggestions on how to check for the existence of a directory? it would be childish if [sys_gui] or another object would retrieve tcl console output, then [puts [glob -type d My-Dir] would do the

Re: [PD] create folder implementation

2010-01-14 Thread colet . patrice
Selon IOhannes m zmoelnig zmoel...@iem.at: as said before: we are dealing with asyncrhonous messages over the internet here. yes just seen this... something like pd_send myrecname [ glob -type d My-Dir ] should send the output of the glob command back to Pd where it will magically appear

Re: [PD] create folder implementation

2010-01-14 Thread Matteo Sisti Sette
colet.patr...@free.fr escribió: Selon Matteo Sisti Sette matteosistise...@gmail.com: Any suggestions on how to check for the existence of a directory? it would be childish if [sys_gui] or another object would retrieve tcl console output, then [puts [glob -type d My-Dir] would do the trick,

Re: [PD] create folder implementation

2010-01-14 Thread Jack
Maybe not nice, but it should work. ++ Jack Le jeudi 14 janvier 2010 à 18:52 +0100, Matteo Sisti Sette a écrit : colet.patr...@free.fr escribió: Selon Matteo Sisti Sette matteosistise...@gmail.com: Any suggestions on how to check for the existence of a directory? it would be

Re: [PD] create folder implementation

2010-01-14 Thread Matteo Sisti Sette
Jack escribió: Maybe not nice, but it should work. Thank you very much, that's great. It does work, and I think it is as nice as it can be. However, unfortunately, it is unsafe for my purposes because of the [delay 0]. Well I guess it's more correct to say it is incompatible with my patch.

Re: [PD] create folder implementation

2010-01-14 Thread Matteo Sisti Sette
colet.patr...@free.fr escribió: ah, did you try the last proposition? (attached again) I tried with: [file mkdir d:/some/dir( | [sys_gui-r] //your abstraction | [print] I guess that's how it is supposed to work. It does create the directory, but nothing comes out from the outlet. The

[PD] create folder implementation (was: pyext always crashes)

2010-01-13 Thread colet . patrice
Hello, Same problem here, with last release of [pyext] py/pyext 0.2.1pre - python script objects (C)2002-2008 Thomas Grill - http://g.org/ext using Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] Fortunately I've keeped a working release, but it works with

Re: [PD] create folder implementation

2010-01-13 Thread Matteo Sisti Sette
colet.patr...@free.fr escribió: Hello, Same problem here, with last release of [pyext] I guess you're using windows too, right? Fortunately I've keeped a working release, but it works with python24 only: Oh, would you please send it to me? (or is it online somewhere?) maybe you should

Re: [PD] create folder implementation

2010-01-13 Thread Hans-Christoph Steiner
On Thu, 14 Jan 2010 02:12 +0100, colet.patr...@free.fr wrote: Selon Matteo Sisti Sette matteosistise...@gmail.com: I guess you're using windows too, right? yes Fortunately I've keeped a working release, but it works with python24 only: Oh, would you please send it to me? (or