We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Problems with "open" (trying to execute ChucK!)
Page Index Toggle Pages: 1
Problems with "open" (trying to execute ChucK!) (Read 383 times)
Problems with "open" (trying to execute ChucK!)
Jun 18th, 2009, 11:10pm
 
Hello,

I'm trying to execute ChucK from my Processing script.  I've copied chuck.exe and a sample file (text.ck) into the data directory and coded this in Processing:

String[] params = { dataPath("chuck.exe"), "test.ck" };
open(params);

This doesn't seem to work.  Not only that, but if I misspell chuck.exe, it doesn't complain and does nothing.  Usually I'd hope for some error message or something! Smiley

Thanks for any ideas,
- Bret
Re: Problems with "open" (trying to execute ChucK!)
Reply #1 - Jun 19th, 2009, 3:47am
 
I don't know what is ChucK. How do you see it is not working? Are you sure it looks in current directory (if the latter is correctly set...) for the file?

Note that Processing has a general policy of "eating" errors, even for stuff like loadImage.
Re: Problems with "open" (trying to execute ChucK!)
Reply #2 - Jun 19th, 2009, 5:29am
 
Take a look at this thread.  It uses the exec(), which got mine working correctly.  Also, I've notice with Windows that I've had to encapsulate the path with quotes ("\"").  dataPath("") may do this for you, but something to keep in mind.  
Page Index Toggle Pages: 1