DirectoryWatcher.NextChange
---------------------------

Queries next change in queue.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DirectoryWatcher](component_DirectoryWatcher.md) | [7.1](newinversion71.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "DirectoryWatcher.NextChange"; Watcher ) 

**MBS**( **"DirectoryWatcher.NextChange";** /\* Queries next change in queue. \*/  
**$Watcher**) /\* The watcher reference number. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Watcher | The watcher reference number. | $watcher |

### Result

Returns list or error.

### Description

Queries next change in queue.  
The list contains first the path name, second the action code and third the name of the action.  
  
| Action | Name |
|---|---|
| 1 | Added |
| 2 | Removed |
| 3 | Modified |
| 4 | Renamed Old Name |
| 5 | Renamed New Name |

  
### See also

- [DirectoryWatcher.GetEvaluate](DirectoryWatcherGetEvaluate.md)
- [DirectoryWatcher.Release](DirectoryWatcherRelease.md)
- [DirectoryWatcher.SetEvaluate](DirectoryWatcherSetEvaluate.md)

### Example Databases

- [Win Only/Directory Watcher](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Directory%20Watcher.shtml#3ScriptAnchor_)

This function checks for a license.

Created 5th March 2017 , last changed 5th March 2017

  
[DirectoryWatcher.GetScriptName](DirectoryWatcherGetScriptName.md) - [DirectoryWatcher.Release](DirectoryWatcherRelease.md)

[HTML Version](DirectoryWatcherNextChange.shtml)