Re: Xcode UI Scripting
Re: Xcode UI Scripting
- Subject: Re: Xcode UI Scripting
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 04 May 2007 14:05:36 -0400
- Thread-topic: Xcode UI Scripting
on 2007-05-04 1:32 PM, V. Thane Norton III at email@hidden wrote:
> I am trying to write an Apple Script that reasonably resizes Xcode
> windows. Unfortunately there is a known defect with Xcode's response
> to resize events. For example, in Xcode 2.4.1 have the console
> window foremost and run the following script:
>
> tell application "System Events"
> tell process "Xcode"
> set bob to size of window 1
> set size of window 1 to {item 1 of bob, (item 2 of bob) + 1}
> end tell
> end tell
>
> You will note that the text area of the console is now 358 pixels
> tall. I have a feeling that this is the height of the view in the
> resources, but the Xcode nib files seem to be inscrutable.
> Regardless, is there any way to get Xcode to realize that that view
> needs resized, apart from dragging the grow area? Alternately, is
> there any way to use the Usability Interface to move the grow area?
Fascinating. I see it here, too, using PreFab UI Browser instead of System
Events (both of them use Apple's Accessibility API). I can't think of an
easy workaround. Maybe you could write a utility that uses the Quartz Event
Services (event taps) API to post mouse dragged events to the grow area's
location on the screen, but that seems like a lot of work for very little
benefit.
This would appear to be a simple defect in the resize springs settings in
the relevant Xcode nib file. File a bug report, and Apple can probably fix
it really easily.
--
Bill Cheeseman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden