Article:
  Replacing AppleScript with Ruby
Subject:   passing requests from applescripts to rb-appscripts
Date:   2008-04-08 20:43:43
From:   gauvins
Simply:


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.