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

MPW Command Reference


OrphanFiles

Script

SYNTAX

OrphanFiles file1 [file2]…

DESCRIPTION

The OrphanFiles script removes the 'ckid' resources from one or more files. Projector normally uses this resource to identify the project to which each file belongs. Thus, executing this command on a file effectively orphans it from its project so that it can be used for other purposes. OrphanFiles does not change the modification date of the file.

Caution
Once you have removed the Projector information from a file, you cannot check the file back into its former project because it no longer belongs to that project. Note, however, that you can use TransferCkid to remedy this by transferring a 'ckid' resource with the correct project information to this file. •

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

OrphanFiles 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 orphaned.

OPTIONS

None

EXAMPLES

If file.c and interactive.c belong to a project that has been deleted, you can remove the Projector information from them with this command:

OrphanFiles file.c interactive.c

SEE ALSO

TransferCkid

 
 


Last Updated July 2000