AVExport.SetOutputPath
----------------------

Sets the output file path.

| 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.SetOutputPath"; AVExportSession; Path ) 

**MBS**( **"AVExport.SetOutputPath";** /\* Sets the output file path. \*/  
**$AVExportSession**; /\* The session reference number.e.g. $AVExport \*/   
**$Path**) /\* The new native file path.e.g. "/Users/cs/Desktop/test.mov" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVExportSession | The session reference number. | $AVExport |
| Path | The new native file path. | "/Users/cs/Desktop/test.mov" |

### Result

Returns OK or error.

### Description

Sets the output file path.  
Indicates the native file path of the export session's output. You may use [AVExport.OutputFileExtension](AVExportOutputFileExtension.md) to obtain an appropriate path extension for the outputFileType you have specified.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
### 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"; $$AVExport ; AVAsset Export Session::Output File Path)\]  
### See also

- [AVExport.GetOutputPath](AVExportGetOutputPath.md)
- [AVExport.GetOutputURL](AVExportGetOutputURL.md)
- [AVExport.OutputFileExtension](AVExportOutputFileExtension.md)
- [AVExport.SetOutputURL](AVExportSetOutputURL.md)
- [Folders.UserDesktop](FoldersUserDesktop.md)
- [Path.AddPathComponent](PathAddPathComponent.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Example Databases

- [Mac and iOS/AVExport](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/AVExport.shtml#1ScriptAnchor_)
- [Mac only/Movies/AVAsset Export Session](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Export%20Session.shtml#1GroupButton372.0000000426.0000000397.0000000553.0000000LayoutObjectAnchor_)

This function checks for a license.

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

  
[AVExport.SetOutputFileType](AVExportSetOutputFileType.md) - [AVExport.SetOutputURL](AVExportSetOutputURL.md)

[HTML Version](AVExportSetOutputPath.shtml)