scan-categorizer
Scan and forget!
AI Summary
Scan Categorizer v2
Categorize, move and rename PDFs in GAS by content
Target Users
Beginner–intermediate developers building Google Drive workflows who want automated PDF filing/renaming
Problems Solved
Manual PDF sorting in Drive is error-prone; content-based automation needed
Tags
Main Features
1
Flexible conditions
Combine and/or conditions, chain them, and use RegExp for content-based categorization.
2
Auto organize/rename
Moves and renames PDFs and creates shortcuts to enforce directory structures.
3
UI-driven setup
No coding required; generate conditions via the provided UI.
4
Helper methods
Helpers for path/name validation and date formatting/extraction.
Usage Examples
Example of defining conditions (paste from the UI)
Below is the conditions array from the README. To match multiple words, use a RegExp like /lorem ipsum/.
// No coding required; generate conditions via the UI and paste here
const conditions = [
{name: 'Lorem', conditions: [and('lorem', 'ipsum')], path: 'Lorem/$y'},
{name: 'Ipsum', conditions: [or('ipsum', 'dolor')], path: 'Ipsum/$y'},
{
name: 'Ipsum',
conditions: [or('ipsum', 'dolor'), and('lorem', 'ipsum')],
path: 'Ipsum/$y',
},
];