Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting insertion point at a line



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.