I had a need to run a REBOL script as an application on my Mac. I was tired of constantly opening Terminal, navigating to the right directory, and typing “rebol script.r” every time I wanted to run my script. This post contained my solution. It describes how to open the current folder you’re looking at in Finder in the Terminal, but the same principals worked for my problem.
on run {input, parameters}
tell application “Terminal"Voila, I exported the workflow as an application via “Save As…” in the file menu in Automator, and running the program opened Terminal and launched my script. Problem solved. It’s not the cleanest solution, but it works.
activate
tell window 1
do script “rebol ~/REBOL/var/script.r"
end tell
end tell
return input
end run