• 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: Is there any way to move to a certain position in AppleScript Editor 2.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there any way to move to a certain position in AppleScript Editor 2.3


  • Subject: Re: Is there any way to move to a certain position in AppleScript Editor 2.3
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 26 Jul 2010 19:18:32 -0700

Is it the cursor you want to move, or the 'insertion point'?

Does this do what you want?

tell application "AppleScript Editor"
tell document 1
set the selection to insertion point 25
end tell
end tell

HTH,

ES
On Jul 26, 2010, at 4:27pm, Tommy Bollman wrote:

Hello.

I can't find a way to move the curser to a given character position in Script Editor. I have only found the character range of the selection-object and that appear to be read only.

I cant anything about gui scripting yet. Is this some how possible with gui-scripting, setting the AXRange, if there is an AX range.
Or do anybody know about some workaround, or the right curses?

Thanks.

Best regards




Tommy Bollman

--------------------------------------------------------------------------------------------------

Mollison's Bureaucracy Hypothesis:

If an idea can survive a bureaucratic review

and be implemented it wasn't worth doing.

Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
References: 
 >Is there any way to move to a certain position in AppleScript Editor 2.3 (From: Tommy Bollman <email@hidden>)

  • Prev by Date: Re: "outgoing message" and "message" classes in Mail's AppleScript dictionary
  • Next by Date: Re: "outgoing message" and "message" classes in Mail's AppleScript dictionary
  • Previous by thread: Re: Is there any way to move to a certain position in AppleScript Editor 2.3
  • Next by thread: Re: Is there any way to move to a certain position in AppleScript Editor 2.3
  • Index(es):
    • Date
    • Thread