QLPreviewPanel.SavedFiles
-------------------------

Queries list of file paths.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [QuickLook](component_QuickLook.md) | [11.1](newinversion111.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "QLPreviewPanel.SavedFiles" ) ### Parameters

none

### Result

Returns list or error.

### Description

Queries list of file paths.  
The saved files may have some random UUID based file name, so please keep original file name at hand.  
When reading back file, you may reuse the file name.  
### Examples

Script triggered when panel closed:

 Set Variable \[ $list ; Value: MBS ("QLPreviewPanel.SavedFiles") \]   
Set Variable \[ $count ; Value: ValueCount($list ) \]   
\#   
If \[ $count &gt; 0 \]   
 # a document was saved  
 Set Variable \[ $path ; Value: GetValue($list ; 1) \]   
 # read file  
 Set Variable \[ $file ; Value: MBS ( "[Container.ReadFile](ContainerReadFile.md)"; $path ; "auto") \]   
 If \[ MBS ("IsError") = 0 \]   
 Set Field \[ AVRecorder::Image ; $file \]   
 End If  
 # cleanup  
 Set Variable \[ $r ; Value: MBS ( "[Files.Delete](FilesDelete.md)"; $Path ) \]   
End If  
### See also

- [Container.ReadFile](ContainerReadFile.md)
- [Files.Delete](FilesDelete.md)
- [IsError](IsError.md)
- [QLPreviewPanel.AddFile](QLPreviewPanelAddFile.md)

### Release notes

- **Version 11.1**
    - Added [QLPreviewPanel.GetEditingAllowed](https://www.mbsplugins.eu/QLPreviewPanelGetEditingAllowed.shtml), [QLPreviewPanel.SavedFiles](https://www.mbsplugins.eu/QLPreviewPanelSavedFiles.shtml), [QLPreviewPanel.SetDismissTrigger](https://www.mbsplugins.eu/QLPreviewPanelSetDismissTrigger.shtml) and [QLPreviewPanel.SetEditingAllowed](https://www.mbsplugins.eu/QLPreviewPanelSetEditingAllowed.shtml) functions to use markup editing of documents on iOS.

### Example Databases

- [iOS/Examples/Markup](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/Markup.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin 11.1](https://www.mbsplugins.de/archive/2021-03-16/MBS_FileMaker_Plugin_111/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.1pr5](https://www.mbsplugins.de/archive/2021-02-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Markup for FileMaker on iOS](https://www.mbsplugins.de/archive/2021-02-19/Markup_for_FileMaker_on_iOS/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th February 2021 , last changed 18th February 2021

  
[QLPreviewPanel.Resize](QLPreviewPanelResize.md) - [QLPreviewPanel.SetCurrentPreviewItemIndex](QLPreviewPanelSetCurrentPreviewItemIndex.md)

[HTML Version](QLPreviewPanelSavedFiles.shtml)