RuntimeError: (-1753) OSACompileExecute

very oftently with a vaild and tested AppleScript i get this error :

RuntimeError: (-1753) OSACompileExecute
method compile_execute
in osacomponent.rb at line 32
method do_script
in osacomponent.rb at line 32
method do_osascript
in osacomponent.rb at line 17
at top level
in wait_4_app_and_win.applescript.rb at line 10

(my line 10 is simply : p OSX.do_osascript(as))

in fact my ruby script only launch the AppleScript’s one by :

#!/usr/bin/env ruby

require ‘osx/aeosa’
as=""
File.open(“wait_4_app_and_win_mod.applescript”).each { |l| as << l}

p OSX.do_osascript(as)

what could i do in order to get out of this hole ?

Le 19 juil. 06 à 12:50, Une bévue a écrit :

what could i do in order to get out of this hole ?

i found a solution, : rewrite completely the applescript for
rubyaeosa, it seems the functions have to be defined just after all
properties and before using them…

On Jul 19, 2006, at 6:50 AM, Une bévue wrote:

at top level
File.open(“wait_4_app_and_win_mod.applescript”).each { |l| as << l}

p OSX.do_osascript(as)

what could i do in order to get out of this hole ?


une bévue

Use system(“osascript #{file}”) instead?

Le 19 juil. 06 à 23:29, Logan C. a écrit :

Use system(“osascript #{file}”) instead?

wawh ! that’s a clever idae, i’ll try it asap ))

never use that way because my applescripts are “method” for ruby (in
vars out vars).

thanks,

Yvon