CS5, Win7/64
Hello,
executing/debugging following test script:
#target Photoshop
var myVbScript = 'msgbox("hello world")';
app.doScript(myVbScript, ScriptLanguage.visualBasic);
... produces this error message:
app.doScript is not a function
Executing a VBS file only with the line msgbox("hello world") works.
What's wrong with my script (or my environment)?
Thanks
Carlos
Do you mean this scripts can not be executed within Photoshop?
I tried this script: http://forums.adobe.com/message/3063152#3063152 (to get a solution for http://forums.adobe.com/message/3942091)
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.
HTH,
Harbs
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.
North America
Europe, Middle East and Africa
Asia Pacific