| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
But thank you so very much!! This gets me going!
Phil
This may be a silly way to do it, but it does work:
display dialog "What line?" default answer "1" set n to text returned of result as integer tell application "Xcode" tell text document 1 set s to (get text of it) set len to length of text from paragraph 1 to paragraph n of s set selection to insertion point (len + 1) end tell end tell
That puts the insertion point at the end of the requested line. m.
-- matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! <http://www.amazon.com/gp/product/0596102119>
_______________________________________________ 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
| References: | |
| >Re: setting insertion point at a line (From: Matt Neuburg <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.