Hi,
is it possible to do the following in Pd?
shortcut)
wanted to save files to a non-existing folder, but Pd doesn't create one.
Thanks as usual,
João
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
- 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
2011/11/8 João Pais jmmmpais@googlemail.com
- 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 http://lists.puredata.info/listinfo/pd-list
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
2011/11/10 João Pais jmmmpais@googlemail.com
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
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 jmmmpais@googlemail.com
this works, but only if I give a complete path, not a relative one. I
canget 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
-----Ursprüngliche Nachricht----- Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@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
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
2011/11/7 João Pais jmmmpais@googlemail.com
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 http://lists.puredata.info/listinfo/pd-list
On Nov 7, 2011, at 4:53 PM, tim vets wrote:
2011/11/7 João Pais jmmmpais@googlemail.com 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
2011/11/7 Hans-Christoph Steiner hans@at.or.at
On Nov 7, 2011, at 4:53 PM, tim vets wrote:
2011/11/7 João Pais jmmmpais@googlemail.com
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 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
- 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
2011/11/8 Ingo ingo@miamiwave.com
- 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
2011/11/8 tim vets timvets@gmail.com
2011/11/8 Ingo ingo@miamiwave.com
- 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
Thats 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:timvets@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 timvets@gmail.com
2011/11/8 Ingo ingo@miamiwave.com
- 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
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