FSEvents.PathsBeingWatched
--------------------------

Queries the paths being watched.

| 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.PathsBeingWatched"; FSEventsRef ) 

**MBS**( **"FSEvents.PathsBeingWatched";** /\* Queries the paths being watched. \*/  
**$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 path list or error.

### Description

Queries the paths being watched.  
### Examples

Query paths being watched:

 Delete All Records \[No dialog\]  
Set Variable \[$path ; Value:MBS ( "[Folders.UserDesktop](FoldersUserDesktop.md)" )\]  
Set Variable \[$sinceWhen ; Value:"now"\]  
If \[not IsEmpty(FSEvents::LastID )\]  
 Set Variable \[$sinceWhen ; Value:FSEvents::LastID \]  
End If  
Set Variable \[$fstream ; Value:MBS ("[FSEvents.Create](FSEventsCreate.md)"; $path ; $sinceWhen ; "IgnoreSelf, FileEvents, WatchRoot"; 2)\]  
If \[MBS ("IsError")\]  
 Show Custom Dialog \["Error"; "Failed to create file system event monitor."\]  
Else  
 Show Custom Dialog \["Paths"; MBS ( "FSEvents.PathsBeingWatched"; $fstream )\]  
 # ....  
End If  
### See also

- [Folders.UserDesktop](FoldersUserDesktop.md)
- [FSEvents.Create](FSEventsCreate.md)
- [FSEvents.DeviceBeingWatched](FSEventsDeviceBeingWatched.md)
- [IsError](IsError.md)

This function is free to use.

Created 18th November 2015 , last changed 24th February 2026

  
[FSEvents.NextEvent](FSEventsNextEvent.md) - [FSEvents.Release](FSEventsRelease.md)

[HTML Version](FSEventsPathsBeingWatched.shtml)