Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1    Statistic    FMM    Blog  

QLPreviewPanel.SavedFiles

Queries list of file paths.

Component Version macOS Windows Linux Server FileMaker iOS SDK
QuickLook 11.1 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "QLPreviewPanel.SavedFiles" )   More

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.

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


QLPreviewPanel.Resize   -   QLPreviewPanel.SetCurrentPreviewItemIndex

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat