Re: Xcode 4 editor scripting - help!
Re: Xcode 4 editor scripting - help!
- Subject: Re: Xcode 4 editor scripting - help!
- From: Matt Neuburg <email@hidden>
- Date: Tue, 28 Feb 2012 08:00:57 -0800
On Mon, 27 Feb 2012 20:10:43 -0700, Brad Oliver <email@hidden> said:
>my scripts need the contents of the current selection in the front window
Script Edit > Copy and examine the clipboard.
Or you might be able to say something like
get value of attribute "AXSelectedText" of text area 1 of group 1 of splitter group 1 of group 2 of splitter group 1 of group 1 of window "Whatever.m"
Clunky, eh? But basically you need to keep repeating to yourself "Xcode is not scriptable any more". So everything you do will be a clunky workaround like that.
m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________
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