<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="absolutepath" module="max" category="Files">
	<digest>
		Convert a file name to an absolute path
	</digest>
	<description>
		Converts a file name or path to an absolute path. If the file is not found, the symbol <m>notfound</m> is output.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Files
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="symbol">
			<digest>
				(symbol) file path
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="symbol">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="symbol">
			<digest>
				(symbol) resolved path
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="anything">
			<arglist>
				<arg name="pathname" optional="0" type="symbol" />
			</arglist>
			<digest>
				Convert a file to an absolute path
			</digest>
			<description>
				A file name or path as a symbol. Input pathnames can contain slashes, colons, or backslashes as separators.
			</description>
		</method>
		<method name="types">
			<arglist>
				<arg name="filetypes" optional="0" type="list" />
			</arglist>
			<digest>
				Designate the recognized file types
			</digest>
			<description>
				The <m>types</m> message followed by a list of <link name="filetypes" module="core" type="vignette">four-letter filetype codes</link> will designate the types of files which <o>absolutepath</o> can recognize.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="absolutepath.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="conformpath" />
		<seealso name="opendialog" />
		<seealso name="relativepath" />
		<seealso name="savedialog" />
		<seealso name="strippath" />
		<seealso name="file_preferences_window" module="core" type="vignette" />
	</seealsolist>
	<discussion>
		Converts a file name or path to an absolute path. If the file is not found, the symbol <m>notfound</m> is output.
		<br />
		<br />
		In addition to the standard Max path syntax (<m>Drive:/path/to/file</m>), <o>absolutepath</o> supports the following additional path prefixes:
		<ul>
			<li>
				<m>~:</m>- path relative to the user's home folder
			</li>
			<li>
				<m>C74:</m>- path relative to the Cycling '74 resources folder (on macOS, this is inside the application bundle <i>Max.app/Contents/Resources/C74/</i>; on Windows, this is the <i>resources</i> folder next to the <i>Max.exe</i> executable
			</li>
			<li>
				<m>Usermax:</m>- path relative to the <i>Max 8</i> folder in the user's <i>Documents</i> folder
			</li>
			<li>
				<m>Desktop:</m>- path relative to the user's <i>Desktop</i> folder
			</li>
			<li>
				<m>~Tempfolder:</m>- path relative to Max's temp folder (this folder will be automatically emptied when Max quits)
			</li>
			<li>
				<m>Package:/&lt;package-name&gt;/</m>- path relative to the package specified in <m>package-name</m>
			</li>
			<li>
				<m>Project:</m>- path relative to the project (if any) containing the <o>absolutepath</o> object
			</li>
		</ul>
	</discussion>
	<misc name="Output">
		<entry name="any symbol">
			<digest />
			<description>
				If the incoming file name or path is found, the output is an absolute path. The output pathnames contain slash separators.
				<br />
				<br />
				Absolute pathnames look like this:
				<br />
				<br />
				<m>&quot;C:/Max Folder/extras/mystuff/mypatch.pat&quot;</m> 
			</description>
		</entry>
	</misc>
</c74object>
