Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Apple Guide Complete / Part 4 - Scripting Guide Files
Chapter 10 - Guide Script Command Reference / Guide Script Command Descriptions


Specifying "Look For" Help

You can specify the text that appears above the search phrase entry box in the Full Access window and the search string using the <Look For Instruction> and <Look For String> commands. You can also specify text instructing the user to click the Search button and to select a topic using the <Look For Search Btn Instruction> and <Look For Results Instruction> commands.

You can use the <Ignore>, <Exception>, and <Synonym> commands to control how Apple Guide searches your index terms when the user directs it to. When the user enters text in the search phrase entry box and then clicks Search, Apple Guide searches your index terms for a matching entry. You can optionally provide a list of words that Apple Guide should ignore (remove from the user's entered text string) when searching, a list of words that Apple Guide should not stem, and a list of words that are synonymous with another word.

In general, Apple Guide first

If Apple Guide does not find the phrase in the synonym list, then Apple Guide

For example, consider the phrase "How do I view files?"
"How do I view files?"Original phrase entered by user
"view files"Apple Guide removes words on ignore list (assuming "how", "do", and "I" are on ignore list)
"view file"Apple Guide stems words (does not stem words on exception list)
"view file"Apple Guide looks for phrase in synonym list and replaces with its index term if found (in this case, "view file" is not in the synonym list)

If the phrase is found in the synonym list, Apple Guide looks in the index for a matching index term and displays the topics associated with the phrase.

If the phrase is not found in the synonym list, Apple Guide searches again.
"view" "file"Apple Guide looks for synonyms
"open" "file"Apple Guide replaces each word with its index term if the word is a synonym (assuming "view" is a synonym for "open")
"open file"Apple Guide looks for "open file" in list of index terms; if it doesn't find this term, Apple Guide continues searching
"open"Apple Guide looks for "open" in list of index terms
"file"Apple Guide looks for "file" in list of index terms

If more than one word has a matching index term, Apple Guide displays the intersection of topics (if any). If Apple Guide finds a match for only one word, it displays a message indicating that it couldn't find an intersection for the word that didn't match and instructs the user to narrow the search phrase.


Subtopics
<Look For Instruction>
<Look For String>
<Look For Search Btn Instruction>
<Look For Results Instruction>
<Ignore>
<Exception>
<Synonym>

Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 JUL 1996