filespec

Syntax filespec (path)

Params path is a string containing a valid file path name.

Action Coereces the type of path to a filespec if possible.

Returns The filespec representation of path.

Examples filespec ("System:System Folder:Finder")

   » "System:System Folder:Finder"

Create a new string entry in the Frontier Object table that contains the name of an existing file. You can then use the filespec verb to convert that string to a value that a program which expects to be given filespec values can use:
filespec (people.DGS.NoteFile)


   » "Spinoza:Documents:Frontier Notes"

Notes This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

Use filespec to coerce a string containing a path name of a file to be a formal Macintosh filespec datatype. Some programs expect this datatype.

See Also alias

Discuss