HotKey.GetScriptName
--------------------

Queries name of script to call in case of event.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [HotKey](component_HotKey.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "HotKey.GetScriptName"; HotKeyRef ) 

**MBS**( **"HotKey.GetScriptName";** /\* Queries name of script to call in case of event. \*/  
**$HotKeyRef**) /\* The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function.e.g. $hotkey \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| HotKeyRef | The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function. | $hotkey |

### Result

Returns script name or error.

### Description

Queries name of script to call in case of event.  
### See also

- [HotKey.GetScriptFileName](HotKeyGetScriptFileName.md)
- [HotKey.Register](HotKeyRegister.md)

This function is free to use.

Created 4th February 2015 , last changed 6th February 2015

  
[HotKey.GetScriptFileName](HotKeyGetScriptFileName.md) - [HotKey.GetScriptWorkspaceOnly](HotKeyGetScriptWorkspaceOnly.md)

[HTML Version](HotKeyGetScriptName.shtml)