FSEvents.Start
--------------

Starts FSEvents monitor.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FSEvents](component_FSEvents.md) | [5.4](newinversion54.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "FSEvents.Start"; FSEventsRef ) 

**MBS**( **"FSEvents.Start";** /\* Starts FSEvents monitor. \*/  
**$FSEventsRef**) /\* The reference number for this FSEvents object.e.g. $fstream \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FSEventsRef | The reference number for this FSEvents object. | $fstream |

### Result

Returns 1, 0 or error.

### Description

Starts FSEvents monitor.  
Returns 1 on success or 0 on failure.  
Attempts to register with the FS Events service to receive events per the parameters in the stream.   
Once started, the stream can be stopped via [FSEvents.Stop](FSEventsStop.md).  
### Examples

Start FSEvents:

 Set Variable \[$r ; Value:MBS ("FSEvents.Start"; $fstream )\]  
### See also

- [FSEvents.Create](FSEventsCreate.md)
- [FSEvents.FlushASync](FSEventsFlushASync.md)
- [FSEvents.FlushSync](FSEventsFlushSync.md)
- [FSEvents.Started](FSEventsStarted.md)
- [FSEvents.Stop](FSEventsStop.md)

### Example Databases

- [Mac only/FSEvents](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/FSEvents.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th November 2015 , last changed 13th March 2016

  
[FSEvents.Show](FSEventsShow.md) - [FSEvents.Started](FSEventsStarted.md)

[HTML Version](FSEventsStart.shtml)