diff --git a/.bin/documents-import b/.bin/documents-import new file mode 100755 index 0000000..562316b --- /dev/null +++ b/.bin/documents-import @@ -0,0 +1,5 @@ +#/bin/sh -xe +. ${HOME}/.bin/_config + +mkdir -p ${PIMDIR}/documents/_incoming +mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/ diff --git a/.bin/documents-next b/.bin/documents-next new file mode 100755 index 0000000..e613e1c --- /dev/null +++ b/.bin/documents-next @@ -0,0 +1,17 @@ +#/bin/sh -xe +. ${HOME}/.bin/_config + +cd ${PIMDIR}/documents + +_doc=$(ls -1 _incoming | head -1) +pdfarranger "_incoming/${_doc}" > /dev/null 2>&1 & +echo "Here is: ${_doc}" +echo "Shall we move it to _done?" +read key + +case $key in + [yY]) mv "_incoming/${_doc}" done/; ;; + *) echo "What a shame..."; ;; +esac + +pkill -f /usr/local/bin/pdfarranger