Just out of curiosity, where did you find this method? As I can't find any documentation for this whatsoever and Photoshop per the object model viewer doesn't even have an "indesign" object... yet your example script works! This is very interesting, I'd love to help you find an answer to your question.
Set the target in your ESTK window to ExtendScript Toolkit and the data browser will show all the Cross DOM and built-in functions. (This is where they are in CS2)
Hope this helps!
And thanks again to Mark for your wisdom, teaching us novices a thing or two
I just tried to edit my post (it would not let me) but you've already found what I was going to add…
indesign.executeScriptFile is Accurate!
It works in the Extendscript Toolkit but NOT in the real world.
Greetings, I tried the solution in the Extendscript toolkit and it works but it does NOT work with the literal script file which is initiated in photoshop.
I'm perplexed! Help! The script seems to fail after reaching the indesign line. (the last alert statement never runs).
var argz = "/c/script.jsx"
alert("does not work")
That's odd, I just tested it and it worked. I put the following script in the photoshop scripts folder:
I selected the script from the Photoshop File -> Scirpts menu.
Maybe it works differently on a PC... I'm using a Mac with CS5.
I suspect that there might be something up with your path, check it out.
To check if your path is a valid file you can try this:
it should return true.