DocumentPicker.File
-------------------

Queries native file path for a file.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FileDialog](component_FileDialog.md) | [9.1](newinversion91.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "DocumentPicker.File"; Index ) 

**MBS**( **"DocumentPicker.File";** /\* Queries native file path for a file. \*/  
**$Index**) /\* The index of the file to query.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | The index of the file to query. | 0 |

### Result

Returns file path or error.

### Description

Queries native file path for a file.  
Pass index from 0 to [DocumentPicker.FileCount](DocumentPickerFileCount.md)-1.  
  
Example path you may see for import:  
"/Containers/Data/Application/2E993ED8-F5AA-4A18-877C-F0CB72485337/tmp/de.monkeybreadsoftware.test-Inbox/IMG\_0005.JPG"  
And for open without inbox:  
| "/Containers/Data/Application/2E993ED8-F5AA-4A18-877C-F0CB72485337/Documents/IMG\_0005.JPG" |  |
|---|---|

### See also

- [DocumentPicker.FileCount](DocumentPickerFileCount.md)
- [DocumentPicker.Files](DocumentPickerFiles.md)
- [DocumentPicker.Move](DocumentPickerMove.md)
- [DocumentPicker.Open](DocumentPickerOpen.md)
- [DocumentPicker.SetTrigger](DocumentPickerSetTrigger.md)

This function checks for a license.

Created 28th January 2019 , last changed 28th January 2019

  
[DocumentPicker.Export](DocumentPickerExport.md) - [DocumentPicker.FileCount](DocumentPickerFileCount.md)

[HTML Version](DocumentPickerFile.shtml)