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

MPW Command Reference


SetDirectory

Script

SYNTAX

SetDirectory directoryName

DESCRIPTION

The SetDirectory script sets the default directory path, adding it to the list of directory paths in the Directory menu if it is not already present. Note that the Set Directory menu item in the Directory menu uses this script in its implementation. The SetDirectory script includes the -asis option of the AddMenu command so that Menu Manager metacharacters are treated as literals.

INPUT

None

OUTPUT

None

STATUS

SetDirectory can return the following status codes:

0

no errors

1

parameter error or unable to set directory

PARAMETERS

directoryName

Specifies the default directory path.

OPTIONS

None

EXAMPLES

The following command line sets the default directory to the Scripts folder in the {MPW} directory and adds "{MPW}"Scripts: to the Directory menu if it is not already there:

SetDirectory "{MPW}"Scripts:

SEE ALSO

AddMenu, for more information on the effect of metacharacters on menu items

Directory

DirectoryMenu

Files

 
 


Last Updated July 2000