FileDialog.SetTreatsFilePackagesAsDirectories
---------------------------------------------

Sets the panel's behavior for displaying file packages (for example, MyApp.app) to the user.

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

MBS( "FileDialog.SetTreatsFilePackagesAsDirectories"; Value ) 

**MBS**( **"FileDialog.SetTreatsFilePackagesAsDirectories";** /\* Sets the panel's behavior for displaying file packages (for example, MyApp.app) to the user. \*/  
**$Value**) /\* If 1, the panel will display file packages as directories; if 0, it will not.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | If 1, the panel will display file packages as directories; if 0, it will not. | 1 |

### Result

Returns OK.

### Description

Sets the panel's behavior for displaying file packages (for example, MyApp.app) to the user.  
Default is off (0).  
This setting has no effect on Windows.  
### Examples

Look inside of bundles:

 Set Variable \[$r ; Value:MBS ("FileDialog.SetTreatsFilePackagesAsDirectories"; 1)\]  
### See also

- [FileDialog.GetTreatsFilePackagesAsDirectories](FileDialogGetTreatsFilePackagesAsDirectories.md)
- [FileDialog.OpenFileDialog](FileDialogOpenFileDialog.md)
- [FileDialog.SaveFileDialog](FileDialogSaveFileDialog.md)
- [FileDialog.SelectFolderDialog](FileDialogSelectFolderDialog.md)
- [FileDialog.SelectItemDialog](FileDialogSelectItemDialog.md)

### Example Databases

- [Files/FileDialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileDialog.shtml#1ScriptAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 18th October 2016

  
[FileDialog.SetShowHidden](FileDialogSetShowHidden.md) - [FileDialog.SetUseSheet](FileDialogSetUseSheet.md)

[HTML Version](FileDialogSetTreatsFilePackagesAsDirectories.shtml)