Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Sets the output file path.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AVExport 6.1 Yes No Yes, macOS only No Yes
MBS( "AVExport.SetOutputPath"; AVExportSession; Path )   More


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


Returns OK or error.


Sets the output file path.
Indicates the native file path of the export session's output. You may use AVExport.OutputFileExtension to obtain an appropriate path extension for the outputFileType you have specified.

This function requires a native path. Use Path.FileMakerPathToNativePath 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 functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.


Export to desktop folder:

Set Field [AVAsset Export Session::Output File Path; MBS("Path.AddPathComponent"; MBS("Folders.UserDesktop"); "test." & AVAsset Export Session::OutputFileExtension)]
Set Variable [$r; Value:MBS( "AVExport.SetOutputPath"; $$AVExport; AVAsset Export Session::Output File Path)]

See also

Example Databases

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

AVExport.SetOutputFileType   -   AVExport.SetOutputURL

Feedback: Report problem or ask question.

MBS Xojo blog