tag:support.multimarkdown.com,2013-02-12:/discussions/problems-v4/2095-the-document-could-not-be-openedMultiMarkdown Software, LLC: Discussion 2018-09-03T19:54:52Ztag:support.multimarkdown.com,2013-02-12:Comment/456098882018-07-06T02:19:07Z2018-07-06T02:19:07ZThe document could not be opened<div><p>That sounds more like a file permission error (e.g. read/write access). Otherwise it's a sandboxing issue. Are you using the Open... dialog to open the file? Do you have write access to those files?</p>
<p>I'll dig into the UTI logic again to see if I can improve use of files without extensions.</p>
<p>Thanks!</p>
<p>Fletcher</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/456098882018-07-06T11:42:13Z2018-07-06T11:42:14ZThe document could not be opened<div><p>Yes, I do have write access via VIM or Sublime, for example.<br>
No, I'm not using Open dialog. Filename is passed as CLI argument.<br>
Looks like it does open the file for editing via manual Open dialog.<br>
What is the proper way of automation? I was using command:<br>
open -Wna "MultiMarkdown Composer" --args $AbsolutePath</p></div>Alexander Pavlenkotag:support.multimarkdown.com,2013-02-12:Comment/456098882018-07-06T12:35:31Z2018-07-06T12:35:31ZThe document could not be opened<div><p>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.</p>
<p>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 <em>might</em> 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.</p>
<p>That’s the only idea I have right now.</p>
<p>Fletcher</p>
<p>Sent from my iPhone</p></div>Fletcher