Re: Text edit and applescript
Re: Text edit and applescript
- Subject: Re: Text edit and applescript
- From: Rob Jorgensen <email@hidden>
- Date: Thu, 12 Feb 2004 23:18:05 -0500
At 9:20 PM -0500 2/12/04, andrew wrote:
Hi all ..
What i am trying to do is append text to a text edit document...the
appending part works fine...but as I append the document does not scroll to
the end...looking thru the dictionary provides me no clue as to how to poll
or set the view postion or scroll position.
Can anyone help on this ?
I don't see a way to do this (scroll to end) unless you are willing
to use UI scripting. Something like this might work (tested in OS X
10.2.8):
tell application "System Events"
if exists process "TextEdit" then
try
set frontmost of process "TextEdit" to true
keystroke (ASCII character 31) with command down
end try
end if
end tell
-- Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.