Lingo Dictionary > Symbols > @ (pathname)

 

@ (pathname)

Syntax

@pathReference

Description

Pathname operator; defines the path to the current movie's folder and is valid on both Windows and Macintosh computers.

Identify the current movie's folder by using the @ symbol followed by one of these pathname separators:

/ (forward slash)

\ (backslash)

: (colon)

When a movie is queried to determine its location, the string returned will include the @ symbol.

Be sure to use only the @ symbol when navigating between Director movies or changing the source of a linked media cast member. The @ symbol does not work when the FileIO Xtra or other functions are used outside those available within Director.

You can build on this pathname to specify folders that are one or more levels above or below the current movie's folder. Keep in mind that the @ portion represents the current movie's location, not necessarily the location of the projector.

Add an additional pathname separator immediately after the @ symbol to specify a folder one level up in the hierarchy.

Add folder and file names (separated by /, \, or :) after the current folder name to specify subfolders and files within folders.

You can use relative pathnames in Lingo to indicate the location of a linked file in a folder different than the movie's folder.

Example

These are equivalent expressions that specify the subfolder bigFolder, which is in the current movie's folder:

@/bigFolder
@:bigFolder
@\bigFolder

593Example

These are equivalent expressions that specify the file linkedFile, in the subfolder bigFolder, which is in the current movie's folder:

@:bigFolder:linkedFile
@\bigFolder\linkedFile
@/bigFolder/linkedFile

Example

This expression specifies the file linkedFile, which is located one level up from the current movie's folder:

@//linkedFile

Example

This expression specifies the file linkedFile, which is located two levels up from the current movie's folder:

@:::linkedFile

Example

These are equivalent expressions that specify the file linkedFile, which is in the folder otherFolder. The otherFolder folder is in the folder one level up from the current movie's folder.

@::otherFolder:linkedFile
@\\otherFolder\linkedFile
@//otherFolder/linkedFile

See also

searchPath, fileName (cast property), fileName (cast member property), fileName (window property)