Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

ImageCapture.ImagePaths

Queries list of image files.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ImageCapture 6.4 Yes No No No No

MBS( "ImageCapture.ImagePaths" )

Parameters

none

Result

Returns list or error.

Description

Queries list of image files.
After you scanned, you can use this function to query list of image file paths.
File paths are returned as native file paths.
Please use Container.ReadFile to read file and Files.Delete to delete them if needed.

Examples

Query images and import them:

Set Variable [$Paths; Value:MBS("ImageCapture.ImagePaths")]
Set Variable [$Count; Value:ValueCount ( $Paths )]
Set Variable [$Index; Value:1]
Loop
    Set Variable [$Path; Value:GetValue($Paths; $index)]
    New Record/Request
    Set Field [Images::Image; MBS("Container.ReadFile"; $path)]
    Set Variable [$r; Value:MBS( "Files.Delete"; $Path )]
    Commit Records/Requests [No dialog]
    Set Variable [$Index; Value:$index + 1]
    Exit Loop If [$index > $count]
End Loop

See also

Example Databases


ImageCapture.GetParameter   -   ImageCapture.Initialize

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos