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

MPW Command Reference


ModifyReadOnly

Built-in

SYNTAX

ModifyReadOnly file1 [file2]…

DESCRIPTION

The ModifyReadOnly command allows you to modify files that have been checked out as read-only. After you have executed this command on a file, the MPW Shell displays the icon shown below.

Note
This file can be checked into the project at a later time, assuming that no other user has checked it out for modification. •

INPUT

None

OUTPUT

None

ALIAS RESOLUTION

This command does not resolve leaf aliases used as part of a pathname or filename. Finder alias files are not recognized by Projector.

STATUS

ModifyReadOnly can return the following status codes:

0

no errors

1

syntax error

2

error in processing

PARAMETERS

file1 [file2]…

Specifies one or more files to be modified.

OPTIONS

None

EXAMPLES

Suppose file.c is checked out as read-only. To write-enable it, you can execute the following script:

ModifyReadOnly file.c
ProjectInfo :file.c -s

The ProjectInfo command in the previous script writes

file.c,5*

to standard output. Notice that an asterisk appears after the revision number when you get information about modified read-only files.

SEE ALSO

CheckIn

CheckOut

CheckOutDir

 
 


Last Updated July 2000