function hi() {
alert("My script is working Jeeej!");
var a = new CSInterface;
a.evalScript("hi()")
}
Photoshop returns undefined.
I don't know why is that?
alert undefined in Photoshop cc 2015
Re: alert undefined in Photoshop cc 2015
That's a bit curious, I did that more than once for testing purposes without getting that `undefined`. I call the evalScript direcly though:
edit: oh, your curly brackets.
Code: Select all
function hi(){
alert("hi there");
}
evalScript("hi()");
- Chris_Kalmar
- Posts: 12
- Joined: Wed Dec 14, 2016 9:51 pm
Re: alert undefined in Photoshop cc 2015
You are right! ApWizard Thank you!
It's working now!
- file :/// stays but undefined is gone
I must say that I don't understand so far
evalScript and CSInterface I just adapted
some code where
this worked.
Do you use CSInterface?
Thanks one more
Chris
It's working now!
- file :/// stays but undefined is gone

I must say that I don't understand so far
evalScript and CSInterface I just adapted
some code where
this worked.
Do you use CSInterface?
Thanks one more
Chris
Re: alert undefined in Photoshop cc 2015
I'm using it only for making the extension persistent.
I didn't really started to dig in there
I didn't really started to dig in there
