|
|
Pure Ruby App that receives events
Does anyone know if it is possible to have a Ruby application that
receives Apple Events? I assume it would be in an event loop. Really,
what I'm asking is if I can create a pure Ruby app that behaves like a
"first class" application as Apple has promised.
Thank you,
pedz
--
Posted via http://www.ruby-forum.com/.
|
|
0
|
|
|
|
Reply
|
pedz (19)
|
8/10/2008 1:53:42 PM |
|
On 10 aug, 15:53, Perry Smith <p...@easesoftware.com> wrote:
> Does anyone know if it is possible to have a Ruby application that
> receives Apple Events? =A0I assume it would be in an event loop. =A0Reall=
y,
> what I'm asking is if I can create a pure Ruby app that behaves like a
> "first class" application as Apple has promised.
It may not be a bad idea to do a few standard Cocoa with Objective-C
tutorials and familiarize yourself with the framework a bit.
If you want to use Ruby there is a Cocoa wrapper called RubyCocoa, it
is supported by Apple:
http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/I=
ntroduction/Introduction.html
I found one article that seems to deal with events:
http://codeintensity.blogspot.com/2008/01/rubycocoa-rocks.html
HTH
Francis
|
|
0
|
|
|
|
Reply
|
francis.rammeloo (37)
|
8/10/2008 3:44:56 PM
|
|
Dolazy wrote:
> I found one article that seems to deal with events:
> http://codeintensity.blogspot.com/2008/01/rubycocoa-rocks.html
Installing event handlers via NSAppleEventManager is fine for simple
tasks. For full-blown scripting interfaces that expose a query-able
object model a-la Finder, Mail, etc., Cocoa Scripting would be more
appropriate (if a bear to get right). Matt Neuburg - who often lurks
around this list - would be the best person to speak to.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
--
Posted via http://www.ruby-forum.com/.
|
|
0
|
|
|
|
Reply
|
has.temp3 (100)
|
8/10/2008 8:20:24 PM
|
|
On Aug 10, 2008, at 3:20 PM, hengist podd wrote:
> Dolazy wrote:
>> I found one article that seems to deal with events:
>> http://codeintensity.blogspot.com/2008/01/rubycocoa-rocks.html
>
> Installing event handlers via NSAppleEventManager is fine for simple
> tasks. For full-blown scripting interfaces that expose a query-able
> object model a-la Finder, Mail, etc., Cocoa Scripting would be more
> appropriate (if a bear to get right). Matt Neuburg - who often lurks
> around this list - would be the best person to speak to.
>
> HTH
>
> has
> --
> Control AppleScriptable applications from Python, Ruby and ObjC:
> http://appscript.sourceforge.net
>
> --
> Posted via http://www.ruby-forum.com/.
>
Also take a look at MacRuby
It is still in it's formative stages, but is the next level of
bridging Ruby and Cocoa.
|
|
0
|
|
|
|
Reply
|
dangerwillrobinsondanger (913)
|
8/11/2008 2:28:12 AM
|
|
|
3 Replies
35 Views
(page loaded in 0.155 seconds)
|
|
|
|
|
|
|
|
|