on 06 Jul, 2018 11:42 AM
Yes, I do have write access via VIM or Sublime, for example.
No, I'm not using Open dialog. Filename is passed as CLI argument.
Looks like it does open the file for editing via manual Open dialog.
What is the proper way of automation? I was using command:
open -Wna "MultiMarkdown Composer" --args $AbsolutePath
Fletcher on 06 Jul, 2018 12:35 PM
You have to use a file dialog window (or the finder) to gain sandbox permissions from macOS. Command line tools don’t give permission. This is part of macOS and not something I can change.
You can create a MultiMarkdown file that links to a local image file and put it somewhere that forces composer to request sandbox permission(when it tries to preview the image, so enable the preview). In the permission dialog, choose the /var folder (or whatever folder you want) to give composer “blanket” permission to that folder. That *might* allow access, though it’s possible composer might only have permission during that session?? If you quit composer you might have to reopen the initial “dummy” file first to reset permissions.