Sorry for not responding to this post... in over a year now. I was busy for a while and didn't have a chance to come back to that script I was working on. Anyhow, thank you... the solution you gave worked. The discrepancy I was seeing where it would work when running script locally (ctrl+R) vs not work when running from the addin was a stale variable problem. Using JMP9, the "Names default to here();" function can be used to force local. I don't recall if I was initially clearing globals, but I know it is in there now. I don't really remember all of the details because it has been so long, but I figured it was worth an update in case anyone ever comes across something like this.