Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applescript "mixed credentials" error

Tags:

applescript

I asked this question over on the Apple Communities and got a grand total of ZERO responses. You guys seem a whole lot smarter, so thought I would ask here to see what you think.

An error has started occuring when I attempt to trigger an Applescript via an external process. The console error is as follows:

12/09/2012 11:01:39.205 osascript[269]: Scripting addition loading restricted to system domains because this process has mixed credentials (issetugid=0 r/e uid=501/0 gid=20/20)

When I run the script locally on the Mac(Mini - Mountain Lion 10.8.1) it works perfectly.

What is happening is as follows.

I have a MacMini as a music server in a home automation environment powered by a Crestron processor. The MacMini is connected to two zones, one via the Optical output and another to a DAC from one of the USB ports. When I selected "Listen to iTunes" in one of the two zones the controller sends a command via UDP to a program running on the MacMini which triggers the scripts to change to the appropriate audio out.

All was working well until yesterday when all of a sudden the program triggering the script, whilst reporting that it has executed the correct script correctly, isn't switching the output and the above message is appearing on the console.

I have read what I can on here and as such have reset the PRAM and SMC (all three dongs...) and deleted the script triggering program, run Clean My Mac and rebooted, all to no avail.

Can anyone help me with this, it has to be something simple given that it was working...surely? I haven't run an update or changed anything else that I can think of.....

Any and all thoughts and input would be greatly appreciated.

Thanks

Marc

like image 314
MARC NIELD Avatar asked May 16 '26 03:05

MARC NIELD


1 Answers

From the error it seems that you have an add-on to applescript called a "Scripting addition" installed, and that's causing the error. Most likely you do not need this add-on to perform your applescript code. So I would remove all scripting additions from my system and see if the applescript still works.

Search your system for scripting additions... ~/Library/ScriptingAdditions and /Library/ScriptingAdditions.

If you do need to do something that the scripting addition is doing for you, then there's probably other ways to perform the same task without the add-on.

like image 131
regulus6633 Avatar answered May 18 '26 23:05

regulus6633