[chuck-users] removing shreds by name from within chuck
Atte André Jensen
atte.jensen at gmail.com
Sun Nov 26 15:45:55 EST 2006
Hi
I'm trying to write a little something that'll load/unload files from
within chuck. I've assigned different filenames to each of the keys a-z
and now when a key is pressed I want to:
if(file_is_running(filename)){
machine.remove(filename2id(filename));
} else {
machine.add(filename);
}
So basically: how do I figure out if a shred is running with a certain
filename and how do I get the id? To be clear: This information is
available in the terminal if I kick chuck with "chuck ^", but I want to
access this information inside chuck...
--
peace, love & harmony
Atte
http://www.atte.dk | quintet: http://www.anagrammer.dk
| compositions: http://www.atte.dk/compositions
More information about the chuck-users
mailing list