Search found 14 matches
- Fri Apr 02, 2021 5:08 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
Re: ES3 and Line Number?
I found what was causing it: In the "Debug" menu, the option "Do Not Break on Guarded Exceptions" wasn't checked but was with a new install (which is odd and implies that I checked it at some point, which I don't remember doing). In any event, it's FINALLY doing what I want!!! AW...
- Fri Apr 02, 2021 1:27 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
Re: ES3 and Line Number?
Weird... Installed ETSK on the workstation sitting next to the other one and it worked without a single problem. Even the $.writeln(Error().line) worked. But I can't think of anything that would cause this distinctive behavior between each system. Any ideas?
- Thu Apr 01, 2021 6:21 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
Re: ES3 and Line Number?
Okay, I think I'm making some sort of progress here and I think it might be in how I'm using ESTK... I found the following script after scouring Google and StackOverflow: Error.prototype.toString = function() { if (typeof this.stack === "undefined" || this.stack === null) { this.stack = &q...
- Thu Apr 01, 2021 5:15 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
Re: ES3 and Line Number?
Well, I uninstalled and reinstalled but I'm seeing zeros in the JavaScript Console every time I use the "$.writeln(Error().line);" statements... No matter where I put them, it always shows zero for its output. Ugh.
- Wed Mar 31, 2021 7:55 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
Re: ES3 and Line Number?
I'll give that a shot and see what happens. I'm about to leave the office but I'll do it tomorrow and follow up with the results.
- Wed Mar 31, 2021 7:45 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
Re: ES3 and Line Number?
Weird. Looks like that's the version I'm using according to Help > About ExtendScript Toolkit...: It's showing "4.0.0.1 ExtendScript 4.5.5 ScriptUI 6.2.2"...
- Wed Mar 31, 2021 5:26 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
Re: ES3 and Line Number?
When I use...
...the JavaScript Console always reads '0' (zero). Any ideas what might be causing that?
Code: Select all
$.writeln(Error().line);
- Mon Mar 29, 2021 7:13 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: ES3 and Line Number?
- Replies: 13
- Views: 34917
ES3 and Line Number?
I'm currently working on an ES3 script and one thing I haven't figured out how to do (maybe it's impossible to do?) is output line numbers at controlled locations in the code (such as inside a function that I'm trying to debug). Ideally, I'd love to do something like the following: var line_number =...
- Mon Mar 15, 2021 6:42 pm
- Forum: Help Me
- Topic: BridgeTalk Callback?
- Replies: 6
- Views: 5289
Re: BridgeTalk Callback?
Completely true, Kukurykus. Just wanted to blame something besides myself. 

- Mon Mar 15, 2021 2:10 pm
- Forum: Help Me
- Topic: BridgeTalk Callback?
- Replies: 6
- Views: 5289
Re: BridgeTalk Callback?
Kukurykus, I think it was the bt.send() parameter being omitted that was causing me headaches as doing what you did (and passing in 1) finally got the function to trigger. This is frustrating because the page I used to understand how to use the send() function (found here: https://extendscript.docsf...