ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Replacing AppleScript with Ruby
Subject:   passing requests from applescripts to rb-appscripts
Date:   2008-04-08 10:56:02
From:   gauvins
Thanks for an excellent post. I've been able to run your example without problem, from the Terminal.


I am unable, however, to figure how an applescript can call an rb-appscript.


Terminal: ruby test2.rb /Users/gauvins/Desktop/test.txt (does work)


AppleScript:


set the_params to “/Users/gauvins/Desktop/test.txt”
do shell script “ruby test2.rb ” & the_params


does not work. Including variants


Any idea?


(I am not a developper at all. Just a poor soul trying to automate a very tedious task :)


1 to 1 of 1
  1. Matt Neuburg photo passing requests from applescripts to rb-appscripts
    2008-04-08 11:21:34  Matt Neuburg | O'Reilly Author [View]

    • passing requests from applescripts to rb-appscripts
      2008-04-08 16:23:08  gauvins [View]

1 to 1 of 1