Thanks, Kam.
Thanks, Matt.
That was very helpful.
Sophie
> From: Kam Dahlin
> To: "MacRuby development discussions."
>
> Subject: Re: [MacRuby-devel] Scripting OmniGraffle
> Message-ID: <[email protected]>
> Content-Type: te
This and many other great examples of "how to do FOO in MacRuby" lead me to
wonder whether the wiki (or any wiki) is really being used to its fullest?
Some real gems (no pun intended) have gone by, and it would be awesome for
newcomers to have a place to go where they can explore a variety of
Hi Sophie,
Here is a little example, that I hope makes things more clear.
graffle =
SBApplication.applicationWithBundleIdentifier("com.omnigroup.OmniGrafflePro")
win = graffle.windows.first
canvas = win.canvas
circle =
OmniGraffleProfessionalShape.alloc.initWithProperties({:name=>"Circle",
:
Sophie, alloc.init is the same as new in Ruby and probably make in
applescript. Basically, alloc allocate an object of a given type and
initialize it.
All instances of a class can be initiated using alloc.init.
If you look at my previous post, I started working on an application that
document the