Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
How to resolve 'Access to Control' message
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mbierman" data-source="post: 1807563" data-attributes="member: 401276"><p><strong>Solved</strong></p><p></p><p>Apple made changes to AppleScript events in Mojave, so running an osascript from within a Bash script will now trigger this dialog, just as though you were running an AppleScript. In System Preferences : Security & Privacy : Privacy tab : Accessibility, click the + button, and add /usr/bin/osascript to the list.</p><p></p><p>When you click the + symbol, you will get a typical File Chooser. Press shift+command+G and in the Go To Folder dialog, enter /usr/bin/osascript and then click GO. You will see this application highlighted in a window of other executables. Click Open, and it will be added to the list in the preceding paragraph.</p></blockquote><p></p>
[QUOTE="mbierman, post: 1807563, member: 401276"] [b]Solved[/b] Apple made changes to AppleScript events in Mojave, so running an osascript from within a Bash script will now trigger this dialog, just as though you were running an AppleScript. In System Preferences : Security & Privacy : Privacy tab : Accessibility, click the + button, and add /usr/bin/osascript to the list. When you click the + symbol, you will get a typical File Chooser. Press shift+command+G and in the Go To Folder dialog, enter /usr/bin/osascript and then click GO. You will see this application highlighted in a window of other executables. Click Open, and it will be added to the list in the preceding paragraph. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
How to resolve 'Access to Control' message
Top