terminal script

need a script to start the the corona terminal for use with automator

trying to setup an automator app to open my editor, the simulator, and the terminal at the same time [import]uid: 7911 topic_id: 14514 reply_id: 314514[/import]

I cd to the directory where my main.lua file is and then run this command

/Applications/CoronaSDK/Corona\ Terminal $PWD

It only works if there are no spaces is the full path name to the main.lua directory.

[import]uid: 67839 topic_id: 14514 reply_id: 53682[/import]

thanks
is there anyway to make it work without cd ing and have it wait for me to choose the folder in simulator [import]uid: 7911 topic_id: 14514 reply_id: 53683[/import]

Just leave off the $PWD so that the command is:

/Applications/CoronaSDK/Corona\ Terminal

[import]uid: 67839 topic_id: 14514 reply_id: 53684[/import]

thanks
[import]uid: 7911 topic_id: 14514 reply_id: 53686[/import]

still having problems

command above works from terminal now trying to get it to work in automator this is what i have
[blockcode]
on run {input, parameters}
tell application “Terminal”
activate
do script “/Applications/CoronaSDK/Corona\ Terminal”
end tell
end run
[/blockcode]
but i get an error that says

SYNTAX ERROR
Expected “"” but found unknown token.

this is my first time using automator for anything and do not know appleScript [import]uid: 7911 topic_id: 14514 reply_id: 53689[/import]

I don’t know applescript either.

I would guess that it’s the space between Corona and Terminal. Since the whole string has “” around it, try it without the .
[import]uid: 67839 topic_id: 14514 reply_id: 53692[/import]

in terminal it only works with the space for me
in automator either with or without the space it want me to put " in front of Terminal
then it open terminal displays the line of text minus Terminal but also shows the " and thats it no corona [import]uid: 7911 topic_id: 14514 reply_id: 53693[/import]

Try 2 backslashes like this

do script “/Applications/CoronaSDK/Corona\ Terminal” [import]uid: 67839 topic_id: 14514 reply_id: 53694[/import]

that did it thanks [import]uid: 7911 topic_id: 14514 reply_id: 53696[/import]

everything working great now
i have a single corona app icon to click on and it opens my editor simulator and terminal [import]uid: 7911 topic_id: 14514 reply_id: 53698[/import]