doScript is not a function (in Photoshop).
The error message says it all...
Are you using the CS SDK or ExtendScript?
I think app.doScript is an InDesign function, I do not know of an equivalent function in Photshop that allows you to execute a VBScript script from ExtendScript (though there may be an equivalent function, I haven't done much Photshop scripting).
Running Applescript or VB from PS or Illy is a bit of a challenge.
There is no doScript equivalent.
Fo JS, you can use eval() or evalScript.
For AppleScript or VB you can use file.execute() if it's saved as an executable.
In Photoshop you might be able to get what you want using app.system() to execute the code in command line as well. Search the Photoshop scripting forum for examples of using app.system(). Bridge and Photoshop are the only apps which have this method.
Using the CS SDK you can do some NativeProcess magic to get the code executed from command line.
Search the Photoshop scripting forum for examples of using app.system(). Bridge and Photoshop are the only apps which have this method.
Yes, this -- using Bridge -- was my question in this thread: http://forums.adobe.com/message/3942404#3942404
But instead of deleting a file without using the recycle bin I had the idea to move the file -- which I want to delete within photoshop -- into a temporary folder. And I found the above mentioned script which leads me to my question in this thread...
Okay, I will try to find a solution by using Bridge.