Thanks - thats a really cool document that I havent seen before. Unfortunately it seems that my syntax is correct per that document. Which leaves me still puzzled on what I am missing. One thing it doesnt talk about in the doc is what happens if the file is closed or opened. It seems to automatically open the file if its closed, but I wonder if it has to already be open for a script to be run. Also, it doesnt seem to like two OpenURL requests back to back.
Ok after some playing around I got it to work.
I ended up having to open the file using this;
then in a seperate script - run this to have my script run.