AVExport.Status
---------------

Queries status of 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.Status"; AVExportSession ) 

**MBS**( **"AVExport.Status";** /\* Queries status of 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 status of export.  
Can be Unknown, Waiting, Exporting, Completed, Failed or Cancelled.  
### Examples

Check Status:

 If \[IsEmpty($$AVExport )\]  
 Set Field \[AVAsset Export Session::Progress ; ""\]  
 Set Field \[AVAsset Export Session::Error ; ""\]  
 Set Field \[AVAsset Export Session::Status ; ""\]  
Else  
 Set Field \[AVAsset Export Session::Progress ; MBS ( "[AVExport.Progress](AVExportProgress.md)"; $$AVExport )\]  
 Set Field \[AVAsset Export Session::Error ; MBS ( "[AVExport.Error](AVExportError.md)"; $$AVExport )\]  
 Set Field \[AVAsset Export Session::Status ; MBS ( "AVExport.Status"; $$AVExport )\]  
End If  
If \[AVAsset Export Session::Status = "Completed" or AVAsset Export Session::Status = "Failed"\]  
 Install OnTimer Script \[\]  
End If  
### See also

- [AVExport.Error](AVExportError.md)
- [AVExport.ExportAsynchronously](AVExportExportAsynchronously.md)
- [AVExport.Progress](AVExportProgress.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#8ScriptAnchor_)

This function checks for a license.

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

  
[AVExport.SetTimeRange](AVExportSetTimeRange.md) - [AVExport.SupportedFileTypes](AVExportSupportedFileTypes.md)

[HTML Version](AVExportStatus.shtml)