Visit Mozilla.org

XPInstall API Reference:File Object:Methods:macAlias

From MDC

Contents

[edit] macAlias

[edit] Method of

File object

[edit] Syntax

int macAlias(
   FileSpecObject destDir,
   String fileName,
   FileSpecObject aliasDir,
   String aliasName );

[edit] Parameters

The macAlias method has the following parameters:

destDir
A FileSpecObject that represents the directory into which the program file will be installed.
fileName
A string representing the name of the file to be installed.
aliasDir
A FileSpecObject that represents the directory into which the alias file will be installed (e.g.,"Mac Desktop").
aliasName
A string representing the name of the alias itself.

[edit] Returns

An integer error code. For a list of possible values, see Return Codes.

[edit] Example

See File.macAlias in the script examples chapter.