file.resolveAlias

Syntax file.resolveAlias (path)

Params path is a legal path name to the alias file whose parent (or original) file you wish to identify.

Action If path is an alias, returns the parent of the alias.

If path is a regular file, returns path.

Returns A string containing the path of the parent, or the original file if it isn't an alias.

Examples file.resolveAlias ("System:System Folder:Startup Items:UserLand Frontier alias")
"System:Frontier 1.0:UserLand Frontier"

Platform Notes This verb is only implemented in the Mac OS version of Frontier.

Notes This verb is similar to file.followAlias, but it's safe to call it on a regular file.

If path is an alias, but the parent file no longer exists, file.resolveAlias will return the empty string.

See Also file.isAlias

file.followAlias

Discuss