AppleScript: system info yields Access not allowed.
Running the following in Script Editor or Script Debugger (7)
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
set machine to computer name of (system info)
yields an "Access not allowed" error similar to what is pictured in this screenshot. (Disregard `short user name`, `computer name` generates the same error.)
Pointers greatly appreciated!
macOS Big Sur 11.12.1