• 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
Capitilization and OSX dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capitilization and OSX dictionary


  • Subject: Capitilization and OSX dictionary
  • From: Matthew Stuckwisch <email@hidden>
  • Date: Fri, 19 Apr 2002 23:46:23 -0500

Okay, this is probably not entirely necessary for my app, but it would be a nice nuance to have (and I post here instead of AS Studio because this doesn't deal with the interface).

I did the following: set theReturn to do shell script "perl " & POSIX path of (path to me) & "/Contents/Resources/random.pl"

random.pl is a perl script designed to access the main two dictionary files for OSX and randomly choose a word or phrase from them (AppleScript can't handle over 5000 items in a list...no way it can do over 230 000). However, if you look at the file /usr/share/dict/web2 and /usr/share/dict/
web2a you'll notice that most of the words aren't capitilized. I don't like that :P

Any quick and dirty way to capitalize words that should be (eg, no "in, of,
a, an, the" if they're not at the beginning) sans OSAX? Reason I ask is that web2a files has phrases, so I can't just capitalize the first letter (which would be pretty easy). Of course, I'm probably going to get an answer so simple I'm going to feel even stupider than I already do after today (but that's an entire 'nother story...too long for lists).

Thanks


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa / G}(esperNET / irc.massinova.com)
_______________________________________________
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.

  • Prev by Date: Re: Entourage Contact help
  • Next by Date: Re: Acrobat
  • Previous by thread: Re: Scripting Additions, OSX
  • Next by thread: Re: Capitilization and OSX dictionary
  • Index(es):
    • Date
    • Thread