Had a script that worked perfectly in Script Editor, even talked properly to Indigo, setting a variable as it was supposed to based on a condition.
When embedded or run from inside Indigo, the functionality broke.
Scratched my head about that for a while, and realized that some Applescript variable state or some such was somehow being preserved when run inside Indigo. NOT an Indigo variable--the script never reads any of those.
No explanation, but I had to move a few variables other places in the script to get it to work when run from inside Indigo.