system.callSystem with pipes

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
chris w
Posts: 13
Joined: October 13th, 2010, 5:16 pm

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
francoisgfx
Posts: 15
Joined: June 5th, 2010, 7:06 am

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
chris w
Posts: 13
Joined: October 13th, 2010, 5:16 pm

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.
Post Reply