Opening Corona terminal with a bash script

Recently I have been experimenting with RCS and Corona and have found that the best way to automate my compiling and document control is through bash scripting.

What I want to be able to do is script it to the point where, on a Monday morning, I am able to issue a bash command to open the editor and Corona Terminal with the appropriate main.lua open.

So far I have:

#!/bin/bash echo "Warning: This command will delete all .lua files currently in this directory" echo "Continue? (y)es, (n)o:" read enteredCommand if [$enteredCommand = y]; then rm -v \*.lua; co -l \*; edit \*.lua; fi

So what I want to add underneath ‘edit *.lua’ is:
“open /…/…/Corona\ Terminal” with the location of the main.lua file I want to edit.

Is this possible?

If so, is it also possible to open the file and then automatically have it build to device/Xcode Simulator?