Re: Count word's occurences
Re: Count word's occurences
- Subject: Re: Count word's occurences
- From: Nigel Garvey <email@hidden>
- Date: Wed, 10 Sep 2014 12:51:38 +0100
Guido Tangorra wrote on Wed, 10 Sep 2014 13:37:47 +0200:
>Hi Nigel,
>I'm using your solution though, as you have pointed out, there is a small
>difference between the two methods. Actually I'm rewriting the text of
>document every time because, if I just add a line, the document loses the
>focus so I have to scroll down till the last line to view the last entry...
Hi Guido.
You can make the page scroll — at the cost of some speed — by selecting the insertion point at the end of the text. ie. Change this …
>> tell application "TextWrangler" to make new line at end of text of
>> text window theDocName with data (myFruit & space & fruitQuantity)
… to this:
tell application "TextWangler"
tell text of front text window
make new line at end with data (myFruit & space & fruitQuantity)
select insertion point -1
end tell
end tell
NG
_______________________________________________
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