Re: Count word's occurences
Re: Count word's occurences
- Subject: Re: Count word's occurences
- From: Guido Tangorra <email@hidden>
- Date: Tue, 09 Sep 2014 15:22:28 +0200
Hi Nigel,
I'm creating a text document from scratch:
tell application "TextWrangler"
activate
set myDocument to make new text document with properties {name:theDocName}
end tell
Then I'm adding lines to the document based on a JSON response
on idle
tell application "JSON Helper" to set myFruit to fetch JSON from mySource
tell application "TextWrangler" to make new line at end of text of document theDocName with data (myFruit & return)
return 0.5
end idle
In the idle handler I want to add a fruit counter so the count is made at runtime (and attached to the JSON response) and not after saving the document.
_______________________________________________
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