<?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="filewatch" module="max" category="Files">
	<digest>
		Watch a file for changes
	</digest>
	<description>
		Watch a specific file and reports a bang whenever that file is altered.
	</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="INLET_TYPE">
			<digest>
				File/Folder Name, bang Starts Watching
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				bang If File Changes
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="filename" optional="1" type="symbol">
			<digest>
				The file name to watch
			</digest>
			<description>
				An optional symbol argument specifies the file name to watch.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Start reporting on file changes
			</digest>
			<description>
				See the <m>int</m> entry.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="flag" optional="0" type="int" />
			</arglist>
			<digest>
				Set reporting of file changes
			</digest>
			<description>
				Turns on the <o>filewatch</o> object. Sending a non-zero number causes the <o>filewatch</o> object to commence watching the file for changes. Sending a 0 causes the object to ignore changes to the file.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="filepath" optional="0" type="list" />
			</arglist>
			<digest>
				Set the file to watch
			</digest>
			<description>
				A filepath or filename within the Max search path will set which file is to be watched by <o>filepath</o>.
			</description>
		</method>
		<method name="stop">
			<arglist />
			<digest>
				Stop reporting on file changes
			</digest>
			<description>
				The <m>stop</m> message functions the same as sending a 0, causing the object to ignore any file changes.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example caption="Max will be notified of any changes in a file" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="absolutepath" />
		<seealso name="opendialog" />
		<seealso name="relativepath" />
		<seealso name="savedialog" />
	</seealsolist>
	<misc name="Output">
		<entry name="bang">
			<description>
				When the <o>filewatch</o> object is active, any change to the specified file will cause <o>filewatch</o> to output a <m>bang</m>.
			</description>
		</entry>
	</misc>
</c74object>
