The script functions well* until installing the last OS Siera update (10-12-2 update).
Now I can save an attachment in the Documents root but not in the folders.
Then I get again the following error message (in Dutch):
Om bevoegdheden te bekijken of te wijzigen, selecteer je het onderdeel in de Finder en kies je 'Archief' > 'Toon info'. (-10000)
Translated is that about:
"To view or change permissions, select the item in the Finder and choose 'File > Get Info'. (-10000)
So the first two commands succeed ant the third gives the error:
save theAttachment in file ("Macintosh HD:Users:jjn:Bijlagen:test.pdf")
save theAttachment in file ("Macintosh HD:Users:jjn:Documents:test.pdf")
save theAttachment in file ("Macintosh HD:Users:jjn:Documents:Bijlagen:test.pdf")
What's going wrong and how can I repair this?
Today (2017-01-04) I tried it again and now also the first save failed.
Perhaps it's an setting on my iMac but I haven't changed anything. It's a mystery for me ...
I have found a solution. I save the attachment to a subfolder of the folder Downloads (that gives not the problems mentioned above) and move the attachment afterwards to the subfolder of the folder Documents (in iCloud).
*) The problem in the topic 'Emails not processed by script' isn't resolved.