• 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: 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
  • Follow-Ups:
    • Re: Setting the selection of a document via AppleScript
      • From: "Timothy J. Wood" <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>)
 >Re: Setting the selection of a document via AppleScript (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: Re: XCode 1.5 target editing error
  • Next by Date: File copy into bundle strips resource fork
  • 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