Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RubyMotion run script alteration #17

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions rubymotion_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@ try
tell application "Terminal"
activate
try
set buildWindow to item 1 of (every window whose custom title is "${TERMINAL_ID}")
set index of buildWindow to 1
do script "quit" in buildWindow
do script "cd \"${PROJECT_DIR}\"" in buildWindow
on error
do script "alias quit='' && cd \"${PROJECT_DIR}\" && clear"
tell window 1
set custom title to "${TERMINAL_ID}"
end tell
close (every window whose custom title is "rake")
delay 0.5
do script "cd \"${PROJECT_DIR}\""
do script "rake ${OPTIONS}" in front window
on error errs number errn
display dialog errs & return & "Error: " & (errn as string)
end try
delay 0.1
do script "rake ${OPTIONS}" in front window
end tell
end tell
end try
END