Update: As a fix, I have used:
if let urlData = try? Data(contentsOf: fileURL) {
intentResponse.file = INFile(data: urlData, filename: fileName, typeIdentifier: nil)
}
but it's still frustrating to encounter such an unexpected behaviour.
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: