aliasReference

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the aliasReference of <aliasPath>
aliasReference(<aliasPath>)
Summary

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

Introduced1.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
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.

Example
the aliasReference of "/Disk/Folder/Alias"
put the aliasReference of it into fileToOpen
Values
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".

RelatedKeyword: file
Constant: empty
Command: create alias
Function: result, aliasReference
Control Structure: function
Glossary: symbolic link, shortcut, return, alias, folder
Securitydisk
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.

Tagsfile system