Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


AuthorInfo

Built-in

SYNTAX

AuthorInfo [-cf commentFile | -cs commentString] [-project project]
[-r] [-u user]

DESCRIPTION

AuthorInfo allows you to specify or print information about the authors in a project. You can specify information about an author by either placing it in a separate file (-cf commentFile) or in a string on the command line (-cs commentString). The information can be changed at any time by simply specifying new information.

This built-in command was added in the v. 3.5 MPW Shell.

INPUT

None

OUTPUT

If you specify the AuthorInfo command with no parameters, it writes to standard output a list of all the authors and the information about them in the current project. The list appears in the form of AuthorInfo commands. If the -u option is specified, information about only the one author is printed.

STATUS

AuthorInfo can return the following status codes:

0

no errors

1

syntax error

2

error in processing

PARAMETERS

None

OPTIONS

-cf commentFile

Specifies a comment contained in the file commentFile.

-cs commentString

Specifies a comment contained in the string commentString.

-project project

Indicates the project about whose authors you want to specify or print information. This project then becomes the current project for this command. If you omit this option, AuthorInfo defaults to the current project.

-r

Executes AuthorInfo recursively on the current project and all of its subprojects.

-u user

Names the current user, overriding the {User} MPW Shell variable.

EXAMPLES

Suppose you want to put your phone number and email address in a project:

AuthorInfo -cs "phone: 555-1212, email: me@mycompany.com"

If you want to put a colleague's phone number and email address in the project you could using a command similar to the following:

AuthorInfo -u "John Doe" -cs "phone: 555-1313, email: doe@mycompany.com"

You could see your and your colleague's information by using the following command:

AuthorInfo

 
 


Last Updated July 2000