Re: Xcode4 : AppleScript : How to get the current text document?
Re: Xcode4 : AppleScript : How to get the current text document?
- Subject: Re: Xcode4 : AppleScript : How to get the current text document?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 04 Aug 2011 05:28:07 -0700
On 2011 Aug 03, at 22:43, Shane Stanley wrote:
> FWIW, your code can be rewritten a bit more succinctly…
Thank you, Shane. The difference between me and an AppleScript expert is that you know where to throw in magic words like 'get' and 'a reference to' so that magic words like 'whose' will work.
> But your basic argument holds: it's a mess. It looks like the fact that
> anything works is luck rather than intention.
Indeed, upon playing with the script for a few minutes I found more bad news. After a scripted text insertion…
• Undo does not work. The Edit ▸ Undo menu item is disabled.
• You cannot re-set the insertion point.
set selected character range of my_document to {m, n}
causes
"Xcode got an error: setter not yet implemented"
So the insertion point is moved to the end of the document. Arghh.
I just wish I had some idea where Apple was going with this. User Scripts? AppleScriptability? Neither? "Setter not *yet* implemented" implies that it may be fixed – someday. But then, we're looking at a "dot 1" release here with Xcode 4.1.
_______________________________________________
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