ScriptWorkspace.ScriptNames
---------------------------

Queries list of script names in Script Workspace.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ScriptWorkspace](component_ScriptWorkspace.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "ScriptWorkspace.ScriptNames" { ; SelectedOnly } ) 

**MBS**( **"ScriptWorkspace.ScriptNames";** /\* Queries list of script names in Script Workspace. \*/  
**$SelectedOnly**) /\* Optional; Pass 1 to only get selected items.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| SelectedOnly | Pass 1 to only get selected items. | 1 | Optional      Added in version **14.5**. |

### Result

Returns list or error.

### Description

Queries list of script names in Script Workspace.  
See also [FM.ScriptNames](FMScriptNames.md) to ask FileMaker instead of looking into the window.  
  
This function includes folder names.  
### Examples

Query names and paths:

 # List of the selected script names   
Set Variable \[ $r ; Value: MBS ( "ScriptWorkspace.ScriptNames"; 1) \]  
\# List of the selected script paths in format Folder→Folder→Script   
Set Variable \[ $r ; Value: MBS ( "[ScriptWorkspace.ScriptPaths](ScriptWorkspaceScriptPaths.md)"; 1) \]  
### See also

- [FM.ScriptNames](FMScriptNames.md)
- [ScriptWorkspace.ScriptPaths](ScriptWorkspaceScriptPaths.md)
- [ScriptWorkspace.ScriptsVisible](ScriptWorkspaceScriptsVisible.md)
- [ScriptWorkspace.ScriptText](ScriptWorkspaceScriptText.md)
- [ScriptWorkspace.SelectLines](ScriptWorkspaceSelectLines.md)

### Release notes

- **Version 8.4**
    - Fixed problem with copying list, so [ScriptWorkspace.ScriptNames](http://www.mbsplugins.eu/ScriptWorkspaceScriptNames.shtml) works again.

### Blog Entries

- [MBS FileMaker Plugin, version 8.4pr8](https://www.mbsplugins.de/archive/2018-09-13/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 13th August 2017 , last changed 12nd May 2025

  
[ScriptWorkspace.OpenScript](ScriptWorkspaceOpenScript.md) - [ScriptWorkspace.ScriptPaths](ScriptWorkspaceScriptPaths.md)

[HTML Version](ScriptWorkspaceScriptNames.shtml)