Shell scripts from AE

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
austin
Posts: 9
Joined: June 21st, 2005, 2:08 pm

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
bradshaw1965
Posts: 98
Joined: March 14th, 2006, 2:16 pm
Location: Atlanta, GA
Contact:

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
Dale Bradshaw
Technology Director | Primal Screen
creative-workflow-hacks.com
Atlanta, GA
austin
Posts: 9
Joined: June 21st, 2005, 2:08 pm

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