Re: [Pythonmac-SIG] trouble getting window bounds via appscript

2010-02-05 Thread Todd
Ned, Thanks! That unblocked me. I changed my code to enumerate over the applications, and then create an app instance from that. // get the front most app from system events se_app_name = se.processes...name.get() // get the actual application real_app = app(se_app_name) // get the windows fo

Re: [Pythonmac-SIG] trouble getting window bounds via appscript

2010-02-05 Thread Ned Deily
In article <4b6c8e7b.8000...@gmail.com>, Todd wrote: > I'd like to perform some window management via appscript on Mac OSX > (10.6.2). > > This is pretty straightforward using AppleScript (see code#1 below). > However, my attempts to perform the same tasks in python appscript have > failed: >

[Pythonmac-SIG] trouble getting window bounds via appscript

2010-02-05 Thread Todd
I'd like to perform some window management via appscript on Mac OSX (10.6.2). This is pretty straightforward using AppleScript (see code#1 below). However, my attempts to perform the same tasks in python appscript have failed: 1. get bounds of display 2. get bounds of foreground process I c