Re: Setting the selection of a document via AppleScript
Re: Setting the selection of a document via AppleScript
- Subject: Re: Setting the selection of a document via AppleScript
- From: Scott Tooker <email@hidden>
- Date: Mon, 20 Jun 2005 11:43:22 -0700
Did the character range snippets work? I'd file a bug on the code
below not working, it should.
Scott
On Jun 16, 2005, at 6:28 PM, Timothy J. Wood wrote:
On Jun 16, 2005, at 2:11 PM, Scott Tooker wrote:
set selection of text document 1 to
paragraph 20 of contents of text document 1
No love:
tell application "Xcode"
set selection of text document 1 to paragraph 1 of contents of
text document 1
end tell
gives "Xcode got an error: NSUnknownKeyScriptError"
I can see that "text document 1" is the right thing:
---
{name:missing value, modified:false, file type:"Source Code File",
script:missing value, contents:"one
two
three
", file name:"/tmp/foo.m", menu:missing value, class:source
document, file kind:"Source Code File", path:"/tmp/foo.m",
selection:insertion point 1 of text of text document "foo.m" of
application "Xcode", text:"one
two
three
", id:2}
---
-tim
_______________________________________________
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