Page 1 of 1

system.callSystem with pipes

Posted: October 17th, 2010, 4:51 pm
by chris w
http://forums.creativecow.net/thread/227/16660#16664

we're trying to get iso info from jpg's into text in AE. So far it works perfect when I go to windows cmd
c:\a\exiftool -T -iso c:\a\b.jpg > out.txt

which gives me 80 iso in a text file. But when I try the java code jsx
system.callSystem("cmd /c \"C:\\a\\exiftool -T -iso c:\\a\\b.jpg\ > c:\\a\\out.txt\"");
it opens the program and sends 80 iso to cmd screen but not to out.txt, although it makes out.txt but leaves it blank. It's weird, like java ignores the pipe command < to send 80 iso to out.txt. I've tried various permutations with quotations, with no luck.


http://forums.creativecow.net/thread/227/16660#16664

Re: system.callSystem with pipes

Posted: December 7th, 2010, 12:48 am
by francoisgfx

Code: Select all

var iso = system.callSystem("cmd /c \"C:\\a\\exiftool -T -iso c:\\a\\b.jpg\"");  // iso = 80
that should work if you are looking to get it directly back into AE

Re: system.callSystem with pipes

Posted: December 14th, 2010, 4:52 pm
by chris w
I tried that. cmd opens up with a brief 80 but alert(iso); is blank. For some reason, it doesn't transfer the data to the variable.