Page 1 of 1

Running Terminal Commands from OSX

Posted: November 8th, 2011, 12:37 am
by philspitler
I'm using the command below.

outputMsg=system.callSystem("xxxxx");

It works but I want it to open the command in an OSX terminal window instead just running silently?

Also, currently AE waits for the system call to finish before giving control back to the AE gui, I just want it to set my command running then put me back in AE (much like BG render does).

Any ideas?

Cheers.

Phil

Re: Running Terminal Commands from OSX

Posted: July 25th, 2012, 3:14 pm
by drockne
I've been noodling on this problem as well. I don't have a complete solution yet, but I thought it might be helpful to share my thought process so far. Rather than use the callSystem method, I'm thinking the best solution is to write a text file temporarily that contains the intended terminal command, save it as a .command file, then have the script execute it.

No code examples for this yet, I still have to write it and test it myself.