Page 1 of 1

Shell scripts from AE

Posted: June 28th, 2006, 4:50 pm
by austin
Hey everyone,

I've been playing with generating shell scripts from AE (as seen in IMP's muster script viewtopic.php?t=103) but my scripts don't run...

I have a feeling it has to do with mac vs unix handling of line breaks, as TextWrangler reads the generated file as Macintosh line breaks...

any mac folks have similar experiences?

Thanks

-austin

Posted: June 29th, 2006, 10:44 am
by bradshaw1965
Hey austin,

When you say your scripts aren't running, what kind of results are you getting? Can you echo something back to AE? Are you having permissions problems? Are you using AE6.5 or 7?

I've had mostly good luck with AE7, and system.callSystem() as long as my permissions are set to excecutable.

Best,

Dale

Posted: July 1st, 2006, 6:10 pm
by austin
i was writing out a .sh file, and then trying to run that file. the script would run, but nothing would happen. my guess is that the line breaks were broken, and the the comment on the first line commented out the whole script. (If i opened the file in BBEdit, changed the line breaks to Unix, and ran the script manually, it worked)

I switched to using system.callSystem, and that seems to work well.

Thanks for the reply, Dale!

-austin