AVExport.OutputFileExtension
----------------------------

Queries preferred file extension for current export.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVExport](component_AVExport.md) | [6.1](newinversion61.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVExport.OutputFileExtension"; AVExportSession ) 

**MBS**( **"AVExport.OutputFileExtension";** /\* Queries preferred file extension for current export. \*/  
**$AVExportSession**) /\* The session reference number.e.g. $AVExport \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVExportSession | The session reference number. | $AVExport |

### Result

Returns text or error.

### Description

Queries preferred file extension for current export.  
Please set file type first via [AVExport.SetOutputFileType](AVExportSetOutputFileType.md).  
### Examples

Export to desktop folder:

 Set Field \[AVAsset Export Session::Output File Path; MBS ("[Path.AddPathComponent](PathAddPathComponent.md)"; MBS ("[Folders.UserDesktop](FoldersUserDesktop.md)"); "test." &amp; AVAsset Export Session::OutputFileExtension )\]  
Set Variable \[$r ; Value:MBS ( "[AVExport.SetOutputPath](AVExportSetOutputPath.md)"; $$AVExport ; AVAsset Export Session::Output File Path)\]  
Set output file type and query default file extension:

 Set Variable \[$r ; Value:MBS ( "[AVExport.SetOutputFileType](AVExportSetOutputFileType.md)"; $$AVExport ; AVAsset Export Session::OutputFileType )\]  
Set Field \[AVAsset Export Session::OutputFileExtension ; MBS ( "AVExport.OutputFileExtension"; $$AVExport )\]  
### See also

- [AVExport.SetOutputFileType](AVExportSetOutputFileType.md)
- [AVExport.SetOutputPath](AVExportSetOutputPath.md)
- [AVExport.SetOutputURL](AVExportSetOutputURL.md)
- [Folders.UserDesktop](FoldersUserDesktop.md)
- [Path.AddPathComponent](PathAddPathComponent.md)

### Example Databases

- [Mac only/Movies/AVAsset Export Session](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Export%20Session.shtml#2ScriptAnchor_)

This function checks for a license.

Created 29th February 2016 , last changed 1st March 2016

  
[AVExport.List](AVExportList.md) - [AVExport.PresetName](AVExportPresetName.md)

[HTML Version](AVExportOutputFileExtension.shtml)