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: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  


Queries event ID for a given time on a device.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FSEvents 6.0 Yes No Yes, macOS only No No

MBS( "FSEvents.LastEventIdForDeviceBeforeTime"; Path; TimeStamp )


Parameter Description Example value
Path The path to the disk. "/"
TimeStamp The timestamp to use.


Returns ID or error.


Queries event ID for a given time on a device.
Gets the last event ID for the given device that was returned before the given time. This is conservative in the sense that if you then use the returned event ID as the sinceWhen parameter of FSEvents.CreateRelativeToDevice that you will not miss any events that happened since that time. On the other hand, you might receive some (harmless) extra events.
Beware: there are things that can cause this to fail to be accurate. For example, someone might change the system's clock (either backwards or forwards). Or an external drive might be used on different systems without perfectly synchronized clocks.


Queries event ID for root device:

MBS( "FSEvents.LastEventIdForDeviceBeforeTime"; "/"; Date( 1 ; 1 ; 2015 ) )

See also

FSEvents.HasNextEvent   -   FSEvents.LatestEventId

Feedback: Report problem or ask question.

MBS FileMaker blog