• 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: Count word's occurences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Count word's occurences
      • From: Nigel Garvey <email@hidden>
References: 
 >Re: Count word's occurences (From: Nigel Garvey <email@hidden>)
 >Re: Count word's occurences (From: Guido Tangorra <email@hidden>)

  • Prev by Date: Re: Count word's occurences
  • Next by Date: Re: Count word's occurences
  • Previous by thread: Re: Count word's occurences
  • Next by thread: Re: Count word's occurences
  • Index(es):
    • Date
    • Thread