Scan to Agenda from macOS

Hello Community,

I recently joined Agenda - coming from Apple Notes.

I try to work paperless and was used to scan from my ScanSnap to Apple Notes (using apple script - triggering a folder in which I scan to, script will generate a note in Apple Notes with the pdf attached).

Is there a way to scan documents to Agenda?

Thank you,
Eric

I haven’t your scan app to test something but maybe you can use a Shortcut to take a scan, create a note in Agenda and put the pdf of the scan in the new note. Not sure it could work but that worths a try!

Just as @Tom_Kiwi suggested it should be doable with an shortcut, if you have an Apple Script that works with notes it should be possible to modify the script to get the output from it, but then remove the parts that sends it to apple notes. So I think you could just add an apple script action, paste the script to the shortcut, and then use the output of the script to create a note in Agenda with the attached pdf.

Not sure if you could use the “Add New Note” action for this in shortcut, or if it has to be done with the X-callback-url function (have a look at the documentation for this here: X-callback-url Support and Reference), but either way it should be doable.

Thanks for your replies.

I will test to modify the AppleScript once I am home (currently on vacation).

My scanner will scan it to a folder which is observed by AppleScript and automatically move it to Apple Notes.

Goal is to tap the scan button on my scanner and with no other user input it will land in my agenda Inbox. Keep you updated.

Here is the procedure how it is working with Apple Notes:

Tried to write apple script with x-callback-url.

Struggling to generate attachement for Agenda (base64 encoded string from pdf):

  1. Does anyone know how to generate a base64 endoded string from pdf within AppleScript (without line breaks)? Or

  2. does anyone have an example on adding attachement to agenda (without Apple Shortcut App)?

Thank you

Best to ask this over in the Shortcuts section, I think. That is where the scripting geeks hang out.