On 12/1/17 at 2:43 PM,
sfs...@gmail.com (David Stein) wrote:
>But I'm continuously running into an issue with High Sierra and
>Gatekeeper, which is part of MacOS's security and malware infrastructure.
>
>The problem is that almost any .py file I create or edit with
>BBEdit gets instantly flagged by Gatekeeper as "an untrusted
>file from the internet," and it gets quarantined. [...]
You left out a very important part of your exchange with Tech
Support, which is this: the quarantine attribute is being added
to your files by
"com.apple.CloudDocs.MobileDocumentsFileProvider", which is the
signature of the iCloud Drive service.
Thus, as Tech Support advised, the quarantine attribute is being
added to files stored in your iCloud Drive folder (or any folder
therein) *by* iCloud Drive.
As to how you might stop iCloud Drive from quarantining your
Python files, that really depends on why iCloud Drive is
applying the quarantine, and I don't think anyone who doesn't
have the source code to the OS can tell you (and someone who
does have the source code to the OS likely won't).
If it's because the files are executable, then you could try this:
defaults write com.barebones.bbedit
MakeShebangScriptsExecutable -bool NO
This may have unintended consequences, though, since there are
many legitimate situations in which a #! script file needs to be executable.
If that doesn't work, or if it creates other problems for your
workflow, then your only alternative is to use Dropbox or some
other service to synchronize files between your computers.
If you don't need syncing, just turn off iCloud Drive (after
rescuing everything you need, since iCloud seems to like
deleting things when you turn it off).
R.
--
Rich Siegel Bare Bones Software, Inc.
<
sie...@barebones.com> <
http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.