applicationPath

Usage

-- Lingo syntax
_player.applicationPath

// JavaScript syntax
_player.applicationPath;

Description

Player property; determines the path or location of the folder containing the running copy of the Director application during authoring, or the folder containing the projector during runtime. Read-only.

The property value is a string.

If you use applicationPath followed by & and a path to a subfolder, enclose the entire expression in parentheses so that script parses the expression as one phrase.

Shockwave Player does not support this property.

Example

This statement displays the pathname for the folder that contains the Director application.

-- Lingo syntax
put(_player.applicationPath)

// JavaScript syntax
put(_player.applicationPath);

This statement opens the movie Sunset Boulevard in a window (on a Windows machine):

-- Lingo syntax
window(_player.applicationPath & "\Film Noir\Sunset Boulevard").open()

// JavaScript syntax
window(_player.applicationPath + "\Film Noir\\Sunset Boulevard").open();

See also

applicationName, Player