On 26 Jun 2021, at 19:10, Neill Smith wrote:

[...]
A scripting error has occurred:

sh: /VCTTools/bat/hdbgsub.sh: No such file or directory

What is the exact line of AppleScript that is failing? (You can find out by running the script in the Apple script editor or Script Debugger.)

This directory does exist.

My guess is that it would have to have been created quite a long time ago, because on any version of macOS 10.15 or later, "/" is a read-only file system.

Trying this now:

    % mkdir -p /VCTTools/bat/
    mkdir: /VCTTools/bat/: Read-only file system

I suspect that your script's inability to locate "/VCTTools/bat/hdbgsub.sh" is related to an intersection of the security-related file system changes and application sandboxing (specifically of the scripting system). Unfortunately I cannot speculate as to the precise cause without a lot more details.

Yes it does exist. I can open that file (and any other SH file) in AppleScript and edit it. I can open it directly using BBEdit but of course it looks like garbage.

What does that mean, specifically? Are you using ".sh" as a filename extension for AppleScript files?

When we moved to MacOS, VCTTools was placed at the ROOT LEVEL to get the same effect. Files within VCTTools have paths set under this assumption.

I recommend reconsidering this decision, if possible. There are many global Unix directories available on macOS which are fit for purpose, none of which will get you tangled up in the macOS security model.

For example, you could mandate "/usr/local/VCTTools" as the "root" location when on macOS, and you'll get your desired behavior of being able to have a machine-wide installation. It might even solve your issue, although I unfortunately am still not clear on what the underlying cause actually is.

R.

--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/F5087E97-57A8-4962-8258-6760939426CB%40barebones.com.

Reply via email to