osascript

I keep getting a window: "osascript wants to make changes. Type an admin name and password to allow this." I cancel it but it keeps coming back - Why - should I authorize it? El Capitain 10.11.6

Mac mini (Late 2012), OS X El Capitan (10.11.6)

Posted on Sep 1, 2016 5:35 AM

Reply
10 replies

Sep 1, 2016 8:36 AM in response to ppond4

You have something trying to make changes using the Open Scripting Architecture. Open Scripting Architecture - Developer - Apple


osascript is a command to run a script (AppleScript, JavaScript) from the shell. You'd have to figure out what it is that is calling osascript. There might be some information in the Console logs that may give a clue as to what is trying to run the script. You could try looking at All Messages and search for osascript..

Sep 1, 2016 9:25 AM in response to léonie

I was looking at some JavaScript Automation (JXA) stuff earlier in the week, and discovered an example that used osascript to run JXA code contained within a script with this invocation:


#!/usr/bin/env osascript -l JavaScript

// JavaScript/JXA code in here


This is more powerful than just JavaScript because one can use Objective-C objects and methods in this JavaScript code.

Sep 2, 2016 1:15 PM in response to léonie

After installing the Security Update for El Capitan and one for Logitech I thought it was gone, but when I restarted it returned. The only way I can keep it from showing is to delete the process "upgrader" in the Activity Monitor. Then osascript doesn't open --- Until I restart, then "upgrader" comes back as a process and with it osascript

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.

osascript

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