ScriptWorkspace.ScriptPaths
---------------------------

Queries list of script paths in Script Workspace.

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

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

**MBS**( **"ScriptWorkspace.ScriptPaths";** /\* Queries list of script paths 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 |

### Result

Returns list or error.

### Description

Queries list of script paths in Script Workspace.  
This provides tab separated list of the script names with folders in front.  
### Examples

Query names and paths:

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

- [ScriptWorkspace.ScriptNames](ScriptWorkspaceScriptNames.md)
- [ScriptWorkspace.ScriptsVisible](ScriptWorkspaceScriptsVisible.md)
- [ScriptWorkspace.ScriptText](ScriptWorkspaceScriptText.md)
- [ScriptWorkspace.SelectLines](ScriptWorkspaceSelectLines.md)

### Blog Entries

- [New in MBS FileMaker Plugin in Version 14.5](https://www.mbsplugins.de/archive/2025-01-08/New_in_MBS_FileMaker_Plugin_in/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 2nd November 2024 , last changed 2nd November 2024

  
[ScriptWorkspace.ScriptNames](ScriptWorkspaceScriptNames.md) - [ScriptWorkspace.ScriptText](ScriptWorkspaceScriptText.md)

[HTML Version](ScriptWorkspaceScriptPaths.shtml)