Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Is this possible?

Is this possible?
Thread Tools
Senior User
Join Date: Dec 2000
Location: Manticore
Status: Offline
Reply With Quote
Jan 13, 2001, 11:31 AM
 
I'm not too good at AppleScript (I know the basics) and was wondering if what I want to do is even possible:

I want a script that will give me all the possible solutions for an acronym (I originally wanted to do this to solve Ginger, but now I'm fairly certain Ginger isn't an acronym. It could be fun anyway.) and export them to a file.

I'd have to have a dictionary file, probably, and also teach the script grammar rather than just letting it do random words.

For example:

Glue
Invert
Navy
Gong
Elf
Red

That wouldn't work. I need to teach it to only pick certain types of words. Is this possible, and if so, could you give me a few pointers?

Thanks



------------------
d
     
Adam Best
Guest
Status:
Reply With Quote
Jan 23, 2001, 02:46 PM
 
Hmmm. This would take quite a bit of work. It's probably beyond the range of AppleScript. You're correct in assuming the need to link to a dictionary file, but in order to have your engine search for "certain types of words," you'd need to create variables for those types, and assign the words you'd like to them as values. Obviuosly, there are a hell of a lot of words in the English language. If you're really excited by the prospect, however, I'd recommend an actual programming application, such as REALBasic combined with an creating an XML-based dictionary file to link to.
However, you couldn't pay me enough to do it! Good luck!


Originally posted by MacAgent:
I'm not too good at AppleScript (I know the basics) and was wondering if what I want to do is even possible:

I want a script that will give me all the possible solutions for an acronym (I originally wanted to do this to solve Ginger, but now I'm fairly certain Ginger isn't an acronym. It could be fun anyway.) and export them to a file.

I'd have to have a dictionary file, probably, and also teach the script grammar rather than just letting it do random words.

For example:

Glue
Invert
Navy
Gong
Elf
Red

That wouldn't work. I need to teach it to only pick certain types of words. Is this possible, and if so, could you give me a few pointers?

Thanks

     
Junior Member
Join Date: Dec 2000
Location: Edmonton, Canada
Status: Offline
Reply With Quote
Jan 28, 2001, 10:18 PM
 
Hey,

Why don't you use something like Perl to do that. I find Perl really useful to use with parsing text files and doing lots of string stuff (like what you want to do). I'm not sure, however, how good the whole MacPerl thing is...last time I used it it hung my machine (ugh!) Perhaps try it in MacOS X PB or borrow someone's linux machine?

My 2 cents.

The Macho Man
     
Senior User
Join Date: Dec 2000
Location: Manticore
Status: Offline
Reply With Quote
Jan 30, 2001, 06:51 PM
 
Only problem is, I only know AppleScript.

------------------
d
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2