• 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 insertion point at a line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting insertion point at a line


  • Subject: Re: setting insertion point at a line
  • From: Scott Tooker <email@hidden>
  • Date: Thu, 25 May 2006 13:01:44 -0700

Currently we have the "text bookmark" object that you can create from a file reference and then show the bookmark in a window, but it only allows setting the character range to select, not the line number :(

Scott


On May 24, 2006, at 11:45 PM, Phil Aaronson wrote:

Hi All,

I've been trying to write an Applescript to open a project, open a file in the project and set the cursor to a particular line. The closest I've been able to come is to set the insertion point by character, but not by line:

tell application "Xcode"
open theProject
activate
open file theFile
activate
set selection of text document 1 to insertion point 1 of text document 1
end tell


I'd appreciate any pointers. Applescript and I aren't exactly the best of friends :)

Thanks!
Phil
_______________________________________________
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

_______________________________________________ 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
References: 
 >setting insertion point at a line (From: Phil Aaronson <email@hidden>)

  • Prev by Date: Re: debug universal binary on 10.3?
  • Next by Date: Re: Can Anyone recommend a good tutorial for Xcode
  • Previous by thread: setting insertion point at a line
  • Next by thread: Re: setting insertion point at a line
  • Index(es):
    • Date
    • Thread