Two other notes: Ruwin uses Rubycocoa, not Macruby. It also uses
NSScreen to get screen info rather than grepping system_profiler
output
On Wed, Feb 25, 2009 at 9:17 AM, Lachie wrote:
> The ScriptingBridge approach is more involved, because the size and
> position accessors don't seem to resolve
The ScriptingBridge approach is more involved, because the size and
position accessors don't seem to resolve automatically...
My Ruwin library is an example of how to do it though:
http://github.com/lachie/ruwin
http://github.com/lachie/ruwin/blob/20a23ac330f65b4930c1b26be2ce463e05a516c7/ruwin.rb
One way of achieving this is by using rb-appscript, which you can
install as a rubygem:
http://appscript.sourceforge.net/rb-appscript/index.html
There's also the Scripting Bridge:
http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Articles/UsingScriptingBridge.html#/
/ap
Somewhat new to OSX, know Ruby well. I'm sure this is not the right list to
post this to, but I'm getting nowhere, and finally found this list ...
I've spent about 3 hours and untold googling trying to figure out how to do
the below in Ruby. I cannot even get past what kind of Scripting Bridge i