FSEvents.UUIDForDevice
----------------------

Gets the UUID associated with a device.

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

MBS( "FSEvents.UUIDForDevice"; DeviceID ) 

**MBS**( **"FSEvents.UUIDForDevice";** /\* Gets the UUID associated with a device. \*/  
**$DeviceID**) /\* The device ID.   
Either a number or the path to a file/folder of that device.e.g. "/" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| DeviceID | The device ID.    Either a number or the path to a file/folder of that device. | "/" |

### Result

Returns UUID or error.

### Description

Gets the UUID associated with a device.  
Returns empty text if not possible (for example, on read-only device).  
A (non-empty) UUID uniquely identifies a given stream of FSEvents. If this (non-empty) UUID is different than one that you stored from a previous run then the event stream is different (for example, because FSEvents were purged, because the disk was erased, or because the event ID counter wrapped around back to zero). An empty return value indicates that "historical" events are not available, i.e., you should not supply a "sinceWhen" value to [FSEvents.Create](FSEventsCreate.md) other than "now".  
The UUID is returned as 32 hex characters.  
### Examples

Queries UUID for root:

 MBS ( "FSEvents.UUIDForDevice"; "/" )  
### See also

- [FSEvents.Create](FSEventsCreate.md)

This function checks for a license.

Created 29th November 2015 , last changed 17th July 2022

  
[FSEvents.Stop](FSEventsStop.md) - [FileDialog.GetAllowMulti](FileDialogGetAllowMulti.md)

[HTML Version](FSEventsUUIDForDevice.shtml)