Copy link to clipboard
Copied
example: #target #include
Copy link to clipboard
Copied
I do not know JavaScript so I always go to school and search for things like that. seems they are Directive statements...
Copy link to clipboard
Copied
Thank you for your answer. I always use W3C too. I wanna know it's any other use in Photoshop Scripting but "#target".
Copy link to clipboard
Copied
From the JavaScript Tools Guide CC.pdf found via ESTK->Help menu item.
In all ExtendScript scripts, the #target directive can use an specifier to identify the application that
should run that script. See “Preprocessor directives” on page 233.
...
Preprocessor directives on page 233
ExtendScript provides preprocessor directives for including external scripts, naming scripts, specifying a
JavaScript engine, and setting certain flags. Specify these with a C-style statement starting with the #
character:
#include "file.jsxinc"
....
Thus the name ExtendScript ....
Copy link to clipboard
Copied
Thank you for your answer. I always use W3C too. I wanna know it's any other use in Photoshop Scripting but "#target".