Bugs: Browse | Submit New | Admin

[#6387] No user interaction allowed (-1713)

Date:
2006-10-29 03:46
Priority:
3
Submitted By:
Alan Norbauer (altano)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
No user interaction allowed (-1713)

Detailed description
I can't seem to get access to the scripting bundles to do things like beep or prompt.

irb(main):122:0> OSA.app_with_bundle_id('com.apple.osax.StandardAdditions')
RuntimeError: Error when translating the application

irb(main):120:0> OSA.app_with_path('/System/Library/ScriptingAdditions/StandardAdditions.osax')
NameError: wrong constant name APPLICATION_“APPNAME”

Am I attempting this incorrectly or is something broken?

Thanks!

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-07-10 07:31
Sender: Alan Norbauer

I upgraded to rubyosa (0.4.0) gem and tried again.  I'm getting
a different
error.  Here is the code:

require 'rubygems'
require 'rbosa'

mail = OSA.app('Mail') # Mail.app
mail.merge(:by_path => '/System/Library/ScriptingAdditions/
StandardAdditions.osax')
mail.choose_from_list %w[foo bar]

And here is the error:

ArgumentError: expected :name, :path, :bundle_id or :signature
key/value

method __scripting_info__	in rbosa.rb at line 263
method merge	in rbosa.rb at line 263
at top level	in untitled document at line 5
Program exited.

Any ideas?
Date: 2007-02-01 14:59
Sender: Laurent Sansonetti

Closing the bug, please re-open as before if the problem is still
there.
Date: 2007-01-31 10:45
Sender: Laurent Sansonetti

Hi Alan, I committed a fix as r154, can you try again?
Date: 2007-01-31 01:20
Sender: Laurent Sansonetti

At a glance this seems to be a limitation of the OSA infrastructure
(as the error it sent by the application itself). I keep this
opened for investigation, maybe we can work around the problem.
I nevertheless rename the bug title for more clarity.
Date: 2007-01-30 23:46
Sender: Alan Norbauer

I installed rbosa from trunk (r153).

I tried to use "choose_from_list" from StandardAdditions
and
get this error:

RuntimeError: application returned error: No user
interaction allowed (-1713)

Is this just something that needs to be turned on, or is it
a limitation of rbosa?

Can I look forward to it being added?

Thanks again for all your help, Laurent.
Date: 2007-01-29 23:54
Sender: Laurent Sansonetti

I just added an sdef merging facility to the subversion repository
(as r152).

It's now possible to do:

app = OSA.app('iTunes')
app.merge(:by_path => '/System/Library/ScriptingAdditions/Stan
dardAdditions.osax')
app.beep

Unfortunately, app.merge('StandardAdditions') doesn't work as
the launch services are not able to locate it, but RubyOSA may
be smarter and see in /System/Library/ScriptingAdditions first.
Date: 2006-10-29 23:50
Sender: Laurent Sansonetti

RubyOSA doesn't support this at the moment, but we might want
to do it in a futur release. Stay tuned!

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idClosed2007-07-10 07:31altano
status_idOpen2007-02-01 14:59lrz
close_date2007-02-01 14:592007-02-01 14:59lrz
summaryScripting Bundles2007-01-31 01:20lrz
status_idClosed2007-01-30 23:46altano
status_idOpen2007-01-29 23:54lrz
close_date2007-01-29 23:542007-01-29 23:54lrz