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: "Timothy J. Wood" <email@hidden>
- Date: Thu, 16 Jun 2005 18:28:50 -0700
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