A newer version of Max is available. Click here to access the latest version of this document.


Convert a file name to an absolute path


The absolutepath object converts a file name or path to an absolute path.
If the file is not found, absolutepath outputs the symbol notfound.




anything pathname [list]
A file name or path as a symbol. Input pathnames can contain slashes, colons, or backslashes as separators.
types filetypes [list]
The types message followed by a list of four-letter, filetype codes will designate the types of files which absolutepath can recognize.

Information for box attributes common to all objects


any symbol: If the incoming file name or path is found, the output is an absolute path. The output pathnames contain slash separators.

Absolute pathnames look like this:

"C:/Max Folder/extras/mystuff/mypatch.pat"


See Also

Name Description
conformpath Convert paths of one pathtype and/or pathstyle to another
opendialog Open a dialog to ask for a file or folder
relativepath Convert an absolute to a relative path
savedialog Open a dialog to ask for a filename for saving
strippath Get a filename from a full pathname
File Preferences File Preferences