Reitering some details discussed elsewhere on the forums and in the blog post
It may also help to describe what the overall solution is that the AppleScript is solving is, so if you can describe the scenario that would be helpful as well.
In order to continue to help everyone understand what's going to work and what's not, we'll summarize here as well. AppleScripts that target the Indigo Server are the ones that will need attention. So if your script has a tell application "IndigoServer" in it will no longer work. Likewise, if you have an embedded script that targets any Indigo objects (embedded scripts don't strictly need to have a tell block in them) or execute commands, it will no longer work.
Here are some examples of things that won't work (not an exhaustive list):
Code: Select all
turn on device "My Device Here"
set value of variable "My Variable" to "some value here"
make new variable with properties {name: "My New Variable", value: "the new value here"}
calculate sunrise
send email to "someaddress" with subject "My Subject" with body "My email body"
However, any script that talks to other applications will work. For instance:
Code: Select all
tell application "iTunes
# Any iTunes command
play
end tell
Code: Select all
do shell script " curl 'http://192.168.0.2/api/v1/runactivity' -d '{ \"activity_uuid\" : \"someidgoeshere\", \"toggle_state\" : \"on\" }' "
A Note about Embedded AppleScripts
While we have yet to make the final decision (we'll update this post when we do), we expect that you won't be able to embed AppleScripts any more, so the only way to execute them will be via an external script file. That's not likely to be a big deal to many of you since we've long warned everyone that external scripts are better because they don't have to run directly in the Indigo Server, but we just wanted to give you a heads up.