Skip to main content
YaoyongYu
Known Participant
December 1, 2016
Question

what's the "#" 's function?

  • December 1, 2016
  • 2 replies
  • 658 views

example:  #target  #include

This topic has been closed for replies.

2 replies

Tom Ruark
Inspiring
December 1, 2016

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 ....

YaoyongYu
YaoyongYuAuthor
Known Participant
December 2, 2016

Thank you for your answer. I always use W3C too.  I wanna know it's any other use in Photoshop Scripting but "#target".

JJMack
Community Expert
Community Expert
December 1, 2016

I do not know JavaScript so I always go to school and search for things like that. seems they are Directive statements...

JJMack
YaoyongYu
YaoyongYuAuthor
Known Participant
December 2, 2016

Thank you for your answer. I always use W3C too.  I wanna know it's any other use in Photoshop Scripting but "#target".