filewatch Reference

Watch a file for changes

filewatch

Description

Watch a specific file and reports a bang whenever that file is altered.

Arguments

filename [symbol]

Optional

An optional symbol argument specifies the file name to watch.

Attributes

Common Box Attributes

Messages

bang

See the int entry.

int

Arguments

flag [int]
Turns on the filewatch object. Sending a non-zero number causes the filewatch object to commence watching the file for changes. Sending a 0 causes the object to ignore changes to the file.

anything

Arguments

filepath [list]
A filepath or filename within the Max search path will set which file is to be watched by filepath.

stop

The stop message functions the same as sending a 0, causing the object to ignore any file changes.

Output

bang

When the filewatch object is active, any change to the specified file will cause filewatch to output a bang.

See Also

Name Description
absolutepath
opendialog
relativepath
savedialog