OCR on PDF files attached to e-mails?

Can someone please send my the script that is working for you ?

As download ? Or per e-mail ?

Because I think maybe I am doing something wrong with copying the script from this forum and pasting it in script editor…

Extract Attachments from Email.scpt.zip (5.6 KB)

Thanks.

But as you already might have guessed… same issue.

So it only works when I run the script directly from the Script Editor.

For now I can live with that, but of course it’s very strange that I can’t find out what exactly is the issue…
Is it important from where I run the script ?

I have copied it to here :

The subfolder you put the script into here shouldn’t matter. As long as you can find it.

To run the script it should have full disk access - correct ?
Is it important that the “check mark” is on or not ?

Having Full Disk Access for DEVONthink is important indeed.
You should also receive automation requests when running certain operations that use AppleScript under-the-hood.

Where should I receive does automation requests ?

Hi @BLUEFROG I download your script it"s perfect…
I suggest you include in the the mail plug, in the implementation of DVTK…