currently i get messages from my customers which having trouble to open files on Mac in the Preview app, when the Preview app isn’t started yet.
When the Preview app is already open, there’s no problem opening the files.
Servoy: 7.5.10
Java: 1.8 Update 151
OS: High Sierra (10.13.2)
First i write a pdf-File in the clients temp folder:
var tmpFile= plugins.file.createTempFile(...)
plugins.file.writeFile(tmpFile, blob)
When the Preview app is already started, the PDF file will open without problems.
But when Preview is not open i see in the dock for less then a second, that the Preview app tries to start.
The console has the following output when opening the file:
Today i’ve tried your workaround and opened the file with Apple Script.
I’ve used the code without application_name, but unfortunately the file do not open with Preview, when the Preview app isn’t started yet.
Some Macs don’t have this issue. So i wonder what’s the difference.