We've posted a couple of things that might help people work around the AppleScript problem.
2015/04/16 Update. Another workaround to try to get it working again, without hopefully the requirement to stop the Indigo Server or reboot your Mac, is to copy/paste the following command into the Terminal application:
- Code: Select all
sudo killall -9 appleeventsd
Note you will be prompted to enter your Mac OS user password for the command to execute. The command will force restart the Mac OS AppleEvents daemon (AppleEvents are the event model on which AppleScript is built). This likely isn't a permanent fix for the problem, but can hopefully get the Mac OS back into a state where it doesn't occur when it starts happening.Also, make sure that you don't have multiple versions of Indigo installed (if, say, you upgrade from one version of Indigo to another). All Indigo installations are here:
- Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 7/
/Library/Application Support/Perceptive Automation/Indigo 6/
[etc]
So make sure that you only have the most recent one installed (delete the others). Note, that's the Library folder at the top level of your hard drive, not the one in your user folder.
If that doesn't work, or you want to try something else, then in the Python Scripting Tutorial, we've added a section called
Executing AppleScript that explains how to call an AppleScript with any number of parameters and how to get the data returned from an AppleScript. This will work in any Python environment, including an embedded or external Python script called from Indigo.
And, going the other way, we've added a section to the RESTful API docs called
AppleScript & the RESTful API that describes a way to use the RESTful API from AppleScript to control devices, get variable values, set variable values, etc. For the majority of users, it will do most of what you want. Lastly, we've
provided details here on how to have AppleScript directly communicate with Indigo's python scripting engine.
We believe that between these two methods, much of what you need to integrate Indigo with AppleScriptable apps/sources are covered. It's not a complete replacement for AppleScript, but we think it does about 90% of what's needed in terms of integration.