I try to save an attachment from an email to a folder in iCloud.
First I put the path to the mobile documents folder:
set MobileDocumentsPath to POSIX path of (path to the library folder from the user domain) & "Mobile Documents/"
Then I set the variable savePath: set savePath to MobileDocumentsPath & originalName
The savePath variable is:
Then I get 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)
It might be a trivial problem but I don’t see the solution.
Manually moving the Attachment is no problem.
Saving the attachment in a folder on the Mac with similar code also gives no problem.