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


Posted on Feb 14, 2021 6:52 PM

Reply

Similar questions

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AppleScript: system info yields Access not allowed.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.