SANE

 

SANE (Scanner Access Now Easy) for macOS

miyako/4d-plugin-sane

Syntax

scanners:=SANE Scanners list(names)
Parameter
Type
Description
scanners
COLLECTION
collection of scanner objects
names
ARRAY TEXT
array of scanner names, JSON summary in element 0
Property Type Description
scanner Object  
scanner.name Text  
scanner.vendor Text  
scanner.model Text  
scanner.type Text  
images:=SANE Scan(scannerName; type)
Parameter
Type
Description
images
COLLECTION
collection of images
scannerName
TEXT
type
LONGINT
image_type_jpg(0) or image_type_png(2)
options:=SANE Scan option values(scannerName; optionValues)
Parameter
Type
Description
scannerName
TEXT
optionValues
ARRAY TEXT
array of option values, JSON summary in element 0
options
COLLECTION
SANE SET SCAN OPTION(scannerName; optionName; optionValue)
optionValue:=SANE Get scan option(scannerName; optionName)
Parameter
Type
Description
scannerName
TEXT
optionName
TEXT
optionValue
TEXT