Copy link to clipboard
Copied
Hey
Few question to go with ExtendedScript debugger from adobe extension
1. How can I make it stop breaking/crashing ? I used in past adobe toolkit and it never did that. Sadly that tool is no longer developed and vsCode one crashes every 5 mins. Its very difficult to debug a long running process/app if mid way debugging it breaks and crashes. Does any1 have any suggestions?
2. Where can I get autocomplete files, say
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hey
Yeh I know these parts.
I cant get this one to work
"targetSpecifier": "photoshop-140.064"
My Ps version is 23.0.1 or something like that, not matte what I type it does not "specify" it properly.
I keep having to manually re-configure it after each crash ;- ((((
Other stuff I'm aware off, none of which fixes missing members/functions of types/etc that they suggest to use.
Copy link to clipboard
Copied
the #target directive does not have to be specified in the configuration file, it works fine in the body of the script (just as it once did in the ESTK).
#target photoshop-160.064
or
#target photoshop
Copy link to clipboard
Copied
1. Use alternative ways of debugging - writing logs to the console using $.writeln (), for example.
2. Types for Adobe & ExtendScript Development Pack
All functions are in the documentation. Nobody forbids you to create your own templates or put functions in variables so that everyone does not type them every time. For example charIDToTypeID many abbreviate to cTT or c2t
Copy link to clipboard
Copied
1. thank you for the $.writeln ! What is it, How do you know about it? I was always using alert() as I had no idea writeln exist ! whhh
This helps lots!!
2. Mmm yeah I have it, but half the stuff is missing :- (
Thanks for links & info!
Copy link to clipboard
Copied
.toSource() is also useful at times (except for when it returns nothing):
alert( myVar.toSource() )
More on the Dollar ($) object in the JavaScript Tools Guide PDF or here:
https://extendscript.docsforadobe.dev/extendscript-tools-features/dollar-object.html