• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting the selection of a document via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Setting the selection of a document via AppleScript
      • From: Scott Tooker <email@hidden>
References: 
 >Setting the selection of a document via AppleScript (From: "Timothy J. Wood" <email@hidden>)
 >Re: Setting the selection of a document via AppleScript (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: SCM Error: SCM could not go online
  • Next by Date: Re: Template static data members in GCC4 (Undefined symbols link error)
  • Previous by thread: Re: Setting the selection of a document via AppleScript
  • Next by thread: Re: Setting the selection of a document via AppleScript
  • Index(es):
    • Date
    • Thread