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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

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

Example Databases

Blog Entries

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


QLPreviewPanel.Resize - QLPreviewPanel.SetCurrentPreviewItemIndex

Feedback: Report problem or ask question.




Links
MBS Xojo blog

Start Chat