supermario/bin/MPW-3.2.3/Worksheet
2019-06-29 22:17:03 +08:00

109 lines
4.8 KiB
Plaintext

# Macintosh Programmer's Workshop 3.2.3
#
# Copyright Apple Computer, Inc. 1985-1992
# All rights reserved.
# Use the "Mark" menu for rapid access to sections of this material.
# Help summaries are available for each of the MPW commands.
# To see the list of all commands enter "Help Commands". To see
# a partial list of commands, e.g., those relating to compilers, enter
# "Help Languages". Some commands may appear in more than one category.
# In addition, brief descriptions of Expressions, Patterns, Selections,
# Characters, Shortcuts, and Variables, are also included.
# To see Help summaries, Enter a command such as
Help Commands # a list of all commands
Help Editing # a list of commands useful for editing
Help FileSystem # a list of commands relating to files,
# directories, and volumes
Help Languages # a list of compiler/assembler names
Help Projector # a list of commands in Projector,
# a project/source control system
Help Scripting # a list of commands useful primarily within scripts
Help System # a list of commands that perform system functions
Help Miscellaneous # a list of utilities and aids to software construction
Help Window # a list of commands pertaining to windows
Help Expressions # summary of expressions
Help Patterns # summary of patterns (regular expressions)
Help Selections # summary of selections
Help Characters # summary of MPW Shell special characters
Help Shortcuts # summary of MPW Shell shortcuts
Help Variables # summary of the standard MPW shell variables
# Graphical Interfaces - Commando
#
# Each command in MPW has a graphical interface for specifying
# parameters and options. To use this feature, either follow the command
# name with an ellipsis character (Option-semicolon), or use the command name
# alone, but depress the Option key while pressing Enter. Notice the
# help text for each of the options.
#
# For an example, select and execute the Date command below.
# (Triple click on the line and press the Enter key.)
Date…
# Examples
#
# To investigate the examples written in Assembly Language, C, Pascal,
# or the Shell's script language, select and execute one of the following
# commands. (Triple click on the line and press the Enter key.)
Open "{MPW}"Examples:AExamples:Instructions # Assembly Language
Open "{MPW}"Examples:CExamples:Instructions # C
Open "{MPW}"Examples:PExamples:Instructions # Pascal
Open "{MPW}"Examples:Examples:Instructions # Shell Scripts and Aliases
# Frequently Used Commands
#
# A number of frequently used commands appear below. To execute the
# command, triple click on the desired line and press Enter. A commando
# window will appear.
#
# As you use these commands, add your favorite options, and other
# frequently used commands.
Alias name word… # Alias [name [word…]] > aliasList
Catenate file… # Catenate [file…] < file > catenation
Close window… # Close [-y | -n | -c] [ -a | window…]
Count file… # Count [-l] [-c] [file…] < file > counts
Cut /RegExp/… # Cut [-c count] selection [window]
Date option… # Date ([-a | -s] [-d | -t] [-c seconds]) | [-n] > date
Delete file… # Delete [-y | -n | -c] [-i] [-p] name… ≥ progress
Duplicate name… target # Duplicate [-y | -n | -c] [-p] [-d | -r] name… target ≥ progress
Echo parameter… # Echo [-n] [parameter…] > parameters
Eject volume… # Eject [-m] volume…
Equal name… target # Equal [-d | -r] [-i] [-p] [-q] name… target > differences ≥ progress
Execute… # Execute tool, script, or built-in
Files file… # Files [option…] [name…] > fileList
Find /RegExp/… # Find [-c count] selection [window]
Line number… # Line n
NewFolder name… # NewFolder name…
Open name… # Open [-n | -r] [-t] [names…]
Parameters parameter… # Parameters [parameter…] > parameters
Print file… # Print [option…] file… < file ≥ progress
Replace /RegExp/ string… # Replace [-c count] selection replacement [window]
Save window… # Save [-a | window…]
Search /RegExp/ file… # Search [option…] pattern [file…] < file > found
Set name value… # Set [name [value]] > variableList
Volumes volume… # Volumes [-l] [-q] [volume…] > volumeList
Which name… # Which [-a] [-p] [name] > file ≥ progress
# Searching
#
# There occasionally arises the need to search all of a hierarchical directory/file
# structure for instances of some regular expression. The following command will
# accomplish this:
# search /RegExp/ `files -o -f -r -t TEXT DirectoryName`
# Example:
search /BitMapToRegion/ `files -o -f -r -t TEXT "{mpw}"interfaces`
------------------------------------------------------------------------------------