tell application "Terminal" do script "ruby test2.rb /Users/gauvins/Desktop/test.txt" end tell
--
see below for some context. In a nutshell, direct calls from the Script Editor do not execute properly because paths are broken.