Skip to main content

aliasReference

Type​

function

Summary​

Returns the name and location of the file or folder that an alias, symbolic link, or shortcut refers to.

Syntax​

the aliasReference of <aliasPath>
aliasReference(<aliasPath>)

Description​

Use the aliasReference function to perform an operation on a file after the user has selected an alias, symbolic link, or shortcut to the file.

Parameters​

NameTypeDescription

aliasPath

The location and name of the alias whose referenced file or folder you want to get. If you specify a name but not a location, LiveCode assumes the file is in the defaultFolder.

Examples​

the aliasReference of "/Disk/Folder/Alias"
put the aliasReference of it into fileToOpen

Value​

NameTypeDescription

return

The aliasReference function returns the name and location of a file or folder.

the result

If the aliasPath does not exist, the aliasReference function returns empty and the result is set to "can't get".

keyword: file

command: create alias

constant: empty

control structure: function

function: result, aliasReference

glossary: symbolic link, shortcut, return, alias, folder

Compatibility and Support​

Introduced

LiveCode 1.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?