Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

FSEvents.LastEventIdForDeviceBeforeTime

Queries event ID for a given time on a device.

Component: FSEvents
Version: 6.0
Mac OS X: Yes
Windows: No
Server: Yes
FileMaker Cloud: No

MBS( "FSEvents.LastEventIdForDeviceBeforeTime" )

Parameters

none

Result

Returns ID or error.

Description

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.

Examples

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.




Links
MBS Realbasic Plugins - Nachhilfe in Kruft