Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mac > BOOK: Beginning AppleScript
|
BOOK: Beginning AppleScript
This is the forum to discuss the Wrox book Beginning AppleScript by Stephen G. Kochan; ISBN: 9780764574009
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning AppleScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2005, 01:17 PM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating names of lists w/index

I have a document with let's say 1000 words. I want to count how many unique words I have in the document. That is, I want to count how many times the word the is used; how many times the word one is used, etc. Each word that is found will create a record containing the literal word itself and the total number of times it was to be found inside the document.

Word count of the document each time the script will be used is unknown. Though after doing a word count and having a total of T words to the document, I want to: Set record(i to T) to {}, so I can initialize the records. Name of the record + an index before the program starts to fill the record is not easily seen to be done.

I wonder if anyone here knows if AppleScript can do this. I never did figure it out, having found the need for this type of coding when I was practicing C++.

KLH
New York City





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Index on View - SQL prince500 SQL Server 2005 5 September 7th, 2011 07:35 AM
Creating Index carumuga SQL Server 2000 1 September 26th, 2008 04:10 PM
Lists rickyoung Pro Visual Basic 2005 0 November 24th, 2006 09:04 AM
Lists Martyn Forum and Wrox.com Feedback 9 June 6th, 2003 11:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.