Hi,
AFAICT neither [shell] nor [popen] results in portable Pd code, i.e. the specific shell commands are OS-dependent.
In any case, I decided to write a new external for the job. In case anyone is interested: [copy] can be used to copy files portably from Pd: http://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/postlude/co...
best,
Jamie
On 28 April 2015 at 00:18:35, tim vets (timvets@gmail.com) wrote:
[shell] or [popen] ?
On 28 Apr 2015 00:47, "Jamie Bullock" jamie@jamiebullock.com wrote: Can anyone suggest a way to move a file in the user's filesystem from within Pd without loading it into memory?
My use case is that I am using [writesf~] to record audio to disk, and I want to allow users to “save” the audio file to somewhere else. Clearly the audio could be very large, so I want to avoid using soundfiler to read into memory and then write back out again. This is from an application that uses Pd as a backend so expecting the user to manually move the file is not an option.
Any solutions (including use of externals) welcome.
Thanks.
Jamie
-- http://jamiebullock.com @jamiebullock
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list