FSEvents.GetFileName
--------------------

Returns the file name for the scheduled script start.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FSEvents](component_FSEvents.md) | [5.4](newinversion54.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "FSEvents.GetFileName"; FSEventsRef ) 

**MBS**( **"FSEvents.GetFileName";** /\* Returns the file name for the scheduled script start. \*/  
**$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 text or error.

### Description

Returns the file name for the scheduled script start.  
### See also

- [FSEvents.GetScriptName](FSEventsGetScriptName.md)
- [FSEvents.SetFileName](FSEventsSetFileName.md)

This function is free to use.

Created 18th November 2015 , last changed 15th June 2021

  
[FSEvents.GetExclusionPaths](FSEventsGetExclusionPaths.md) - [FSEvents.GetScriptName](FSEventsGetScriptName.md)

[HTML Version](FSEventsGetFileName.shtml)