Re: [PD] clear console command + create folder from Pd?

2011-11-13 Thread rolf meesters
working in  Windows-XP
patch.pd contains

[echo %cd%(
|
[popen]

starting patch.pd directly gives: symbol C:
using pd -open patch.pd gives :symbol C:Program Filespd

however

[mkdir test( -- [popen]

creates the subdirectory in both cases where patch.pd is

the latter is nice, the former confusing

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


Re: [PD] clear console command + create folder from Pd?

2011-11-12 Thread João Pais
very strange. I'm using the latest stable 0.42 in XP. I also tried the  
newest .43 build, and doesn't work as well.

Since this is for someone who is only in windows, I won't try it in linux.


2011/11/10 João Pais 

 this works, but only if I give a complete path, not a relative one. I  
can

get the patche's current path with tof/path, but I read that tof isn't
included in the next versions? Is it possible to get the current path
through other methods?

João

[echo %CD%( -- [popen] ?




"error: popen: no method for 'echo'"

maybe popen only works in unix? or is something wrong in the window$
external?

João

strange, it works here...

It literally opens the commandline (cmd), which you see flashing by.
I was using current (give or take a few months) pd-extended, and [popen]
that came with it... it's working in Linux too.
Tim



--
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
Studio +49 30 69509190
jmmmp...@googlemail.com | skype: jmmmpjmmmp

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


Re: [PD] clear console command + create folder from Pd?

2011-11-10 Thread tim vets
2011/11/10 João Pais 

>  this works, but only if I give a complete path, not a relative one. I can
>>> get the patche's current path with tof/path, but I read that tof isn't
>>> included in the next versions? Is it possible to get the current path
>>> through other methods?
>>>
>>> João
>>>
>>> [echo %CD%( -- [popen] ?
>>>
>>
> "error: popen: no method for 'echo'"
>
> maybe popen only works in unix? or is something wrong in the window$
> external?
>
> João
>
> strange, it works here...
It literally opens the commandline (cmd), which you see flashing by.
I was using current (give or take a few months) pd-extended, and [popen]
that came with it... it's working in Linux too.
Tim
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] clear console command + create folder from Pd?

2011-11-10 Thread João Pais
this works, but only if I give a complete path, not a relative one. I  
can

get the patche's current path with tof/path, but I read that tof isn't
included in the next versions? Is it possible to get the current path
through other methods?

João

[echo %CD%( -- [popen] ?


"error: popen: no method for 'echo'"

maybe popen only works in unix? or is something wrong in the window$  
external?


João


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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread Hans-Christoph Steiner

On Nov 8, 2011, at 6:46 AM, João Pais wrote:

>>> - 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.
>> 
>> You could probably use Tcl's mkdir and send it to the GUI:
>> 
>> [file mkidr /path/to/mynewfolder(
>> |
>> [hcs/sys_gui]
> 
> this works, but only if I give a complete path, not a relative one. I can get 
> the patche's current path with tof/path, but I read that tof isn't included 
> in the next versions? Is it possible to get the current path through other 
> methods?

tof is included in Pd-extended as long as it doesn't break.  It doesn't 
currently have a maintainer.

.hc






"Free software means you control what your computer does. Non-free software 
means someone else controls that, and to some extent controls you." - Richard 
M. Stallman



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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread Ingo


> -Ursprüngliche Nachricht-
> Von: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] Im Auftrag von
> João Pais
> Gesendet: Dienstag, 8. November 2011 12:46
> An: Hans-Christoph Steiner
> Cc: PD-List
> Betreff: Re: [PD] clear console command + create folder from Pd?
> 
> >> - 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.
> >
> > You could probably use Tcl's mkdir and send it to the GUI:
> >
> > [file mkidr /path/to/mynewfolder(
> > |
> > [hcs/sys_gui]
> 
> this works, but only if I give a complete path, not a relative one.


You could use [ggee/getdir] if you are on Pd-extended.


I can
> get the patche's current path with tof/path, but I read that tof isn't
> included in the next versions? Is it possible to get the current path
> through other methods?
> 
> João

Ingo


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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread Ingo
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:timv...@gmail.com] 
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 

2011/11/8 Ingo 

>>> - 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


___
Pd-list@iem.at 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;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread tim vets
2011/11/8 João Pais 

>  - 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.
>>>
>>
>> You could probably use Tcl's mkdir and send it to the GUI:
>>
>> [file mkidr /path/to/mynewfolder(
>> |
>> [hcs/sys_gui]
>>
>
> this works, but only if I give a complete path, not a relative one. I can
> get the patche's current path with tof/path, but I read that tof isn't
> included in the next versions? Is it possible to get the current path
> through other methods?
>
> João
>
> [echo %CD%( -- [popen] ?

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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread João Pais
- 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.


You could probably use Tcl's mkdir and send it to the GUI:

[file mkidr /path/to/mynewfolder(
|
[hcs/sys_gui]


this works, but only if I give a complete path, not a relative one. I can  
get the patche's current path with tof/path, but I read that tof isn't  
included in the next versions? Is it possible to get the current path  
through other methods?


João

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


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread tim vets
2011/11/8 tim vets 

>
>
> 2011/11/8 Ingo 
>
>>
>> >>> - 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
>>
>>
>> ___
>> Pd-list@iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>
>
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread tim vets
2011/11/8 Ingo 

>
> >>> - 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...




> Ingo
>
>
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
#N canvas 250 52 472 420 10;
#X obj 240 237 popen;
#X obj 95 93 makefilename %c;
#X obj 67 183 l2s;
#X obj 67 141 pack s s s;
#X msg 102 178 symbol;
#X obj 67 212 prepend mkdir;
#X obj 67 250 print;
#X msg 95 72 92;
#X msg 124 120 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 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;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] clear console command + create folder from Pd?

2011-11-08 Thread João Pais
that's strange, I'm also in XP, and only got "error: popen: no method for  
'mkdir'"





- 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.

Ingo


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



--
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
Studio +49 30 69509190
jmmmp...@googlemail.com | skype: jmmmpjmmmp

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


Re: [PD] clear console command + create folder from Pd?

2011-11-07 Thread Ingo

>>> - 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.

Ingo


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


Re: [PD] clear console command + create folder from Pd?

2011-11-07 Thread tim vets
2011/11/7 Hans-Christoph Steiner 

>
> On Nov 7, 2011, at 4:53 PM, tim vets wrote:
>
>
>
> 2011/11/7 João Pais 
>
>> Hi,
>>
>> is it possible to do the following in Pd?
>>
>> - clear the console with some command sent to [s pd] (not with the
>> shortcut)
>>
>> - 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?
>

works here in a virtual machine running XP...


> Someone could probably make  [mkdir] object quite quickly using pdlua or
> tclpd.
>




> .hc
>
>
> gr,
> Tim
>
> Thanks as usual,
>>
>> João
>>
>> __**_
>> Pd-list@iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/**
>> listinfo/pd-list 
>>
>
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
>
>
>
> 
>
> Looking at things from a more basic level, you can come up with a more
> direct solution... It may sound small in theory, but it in practice, it can
> change entire economies. - Amy Smith
>
>
>
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] clear console command + create folder from Pd?

2011-11-07 Thread Hans-Christoph Steiner

On Nov 7, 2011, at 4:53 PM, tim vets wrote:

> 
> 
> 2011/11/7 João Pais 
> Hi,
> 
> is it possible to do the following in Pd?
> 
> - clear the console with some command sent to [s pd] (not with the shortcut)
> 
> - 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


> gr,
> Tim
> 
> Thanks as usual,
> 
> João
> 
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
> 
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list





Looking at things from a more basic level, you can come up with a more direct 
solution... It may sound small in theory, but it in practice, it can change 
entire economies. - Amy Smith


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


Re: [PD] clear console command + create folder from Pd?

2011-11-07 Thread tim vets
2011/11/7 João Pais 

> Hi,
>
> is it possible to do the following in Pd?
>
> - clear the console with some command sent to [s pd] (not with the
> shortcut)
>
> - 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] ?
gr,
Tim

Thanks as usual,
>
> João
>
> __**_
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/**
> listinfo/pd-list 
>
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] clear console command + create folder from Pd?

2011-11-07 Thread Hans-Christoph Steiner

On Nov 7, 2011, at 4:35 PM, João Pais wrote:

> Hi,
> 
> is it possible to do the following in Pd?
> 
> - clear the console with some command sent to [s pd] (not with the shortcut)

pd isn't really aware of the console, so you need to send a message to the GUI:

[menu_clear_console(
|
[hcs/sys_gui]

> - 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.

You could probably use Tcl's mkdir and send it to the GUI:

[file mkidr /path/to/mynewfolder(
|
[hcs/sys_gui]

.hc




Looking at things from a more basic level, you can come up with a more direct 
solution... It may sound small in theory, but it in practice, it can change 
entire economies. - Amy Smith



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


[PD] clear console command + create folder from Pd?

2011-11-07 Thread João Pais

Hi,

is it possible to do the following in Pd?

- clear the console with some command sent to [s pd] (not with the  
shortcut)


- 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.


Thanks as usual,

João

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