Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Queries the paths being watched.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FSEvents 5.4 Yes No Yes, macOS only No No
MBS( "FSEvents.PathsBeingWatched"; FSEventsRef )   More


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


Returns path list or error.


Queries the paths being watched.


Query paths being watched:

Delete All Records [No dialog]
Set Variable [$path; Value:MBS( "Folders.UserDesktop" )]
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"; $path; $sinceWhen; "IgnoreSelf, FileEvents, WatchRoot"; 2)]
If [MBS("IsError")]
    Show Custom Dialog ["Error"; "Failed to create file system event monitor."]
    Show Custom Dialog ["Paths"; MBS( "FSEvents.PathsBeingWatched"; $fstream )]
End If

See also

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

FSEvents.NextEvent   -   FSEvents.Release

Feedback: Report problem or ask question.

MBS FileMaker Plugins