Import From Scanner
Summary: Use as the target of your scanner software to send scans to EagleFiler and set their metadata.
Requires: EagleFiler, scanner
Install Location: Droplet
Last Modified: 2019-10-02
Description
Most scanner software (e.g. the Fujitsu ScanSnap) can be set to save the scanned files into the “To Import” folder for your library; newly scanned files will then automatically go into that library. You can also set EagleFiler itself as the target application for the scanner software; then the scans will go to whichever library is currently open. This script takes things one step further by letting you set the metadata (title, label, tags, notes, etc.) of each file as it’s scanned. It will also set the filename based on the title that you enter.
To use this script, open it in AppleScript Editor and save it as an application. Then set it as the target of your scanner’s software. For example, go to the Application tab of the ScanSnap Manager’s settings, click “Add or Remove,” and choose the script application. Make sure that the ScanSnap is not set to save the file to a folder in your EagleFiler library; this would cause the import to fail because the file is already in EagleFiler.
See also the OCR With PDFpen script.
Installation Instructions · Download in Compiled Format · Download in Text Format
Script
on
open
_files
repeat
with
_file
in
_files
my
importFile(
_file)
end
repeat
end
open
on
importFile(
_file)
tell
application
"EagleFiler"
set
{
_record}
to
import
files
{
_file}
with
asking for options
set
_record's
basename
to
_record's
title
end
tell
end
importFile