Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
QLPreviewPanel.SavedFiles
Queries list of file paths.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
QuickLook | 11.1 | ❌ 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 > 0 ]
# a document was saved
Set Variable [ $path ; Value: GetValue($list; 1) ]
# read file
Set Variable [ $file ; Value: MBS( "Container.ReadFile"; $path; "auto") ]
If [ MBS("IsError") = 0 ]
Set Field [ AVRecorder::Image ; $file ]
End If
# cleanup
Set Variable [ $r ; Value: MBS( "Files.Delete"; $Path ) ]
End If
See also
Release notes
- Version 11.1
- Added QLPreviewPanel.GetEditingAllowed, QLPreviewPanel.SavedFiles, QLPreviewPanel.SetDismissTrigger and QLPreviewPanel.SetEditingAllowed functions to use markup editing of documents on iOS.
Example Databases
Blog Entries
This function checks for a license.
Created 18th February 2021, last changed 18th February 2021
QLPreviewPanel.Resize - QLPreviewPanel.SetCurrentPreviewItemIndex