[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[RubyAEOSA] RuntimeError: (-1753) OSACompileExecute

pere.noel

7/19/2006 10:49:00 AM


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 ?

--
une bévue
1 Answer

Logan Capaldo

7/19/2006 9:30:00 PM

0


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

>
> 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 ?
>
> --
> une bévue
>

Use system("osascript #{file}") instead?