ImageCapture.ImagePaths
-----------------------

Queries list of image files.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImageCapture](component_ImageCapture.md) | [6.4](newinversion64.md) | ✅ 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](ContainerReadFile.md) to read file and [Files.Delete](FilesDelete.md) 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](ContainerReadFile.md)"; $path )\]  
 Set Variable \[$r ; Value:MBS ( "[Files.Delete](FilesDelete.md)"; $Path )\]  
 Commit Records/Requests \[No dialog\]  
 Set Variable \[$Index ; Value:$index + 1\]  
 Exit Loop If \[$index &gt; $count \]  
End Loop  
### See also

- [Container.ReadFile](ContainerReadFile.md)
- [Files.Delete](FilesDelete.md)
- [ImageCapture.RequestScan](ImageCaptureRequestScan.md)
- [ImageCapture.SetParameter](ImageCaptureSetParameter.md)

### Example Databases

- [Mac only/ImageCapture/ImageCapture](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/ImageCapture/ImageCapture.shtml#6ScriptAnchor_)

### Blog Entries

- [ImageCapture functions for Mac OS X](https://www.mbsplugins.de/archive/2016-09-12/ImageCapture_functions_for_Mac/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st September 2016 , last changed 27th November 2020

  
[ImageCapture.GetParameters](ImageCaptureGetParameters.md) - [ImageCapture.Initialize](ImageCaptureInitialize.md)

[HTML Version](ImageCaptureImagePaths.shtml)