• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

what's the "#" 's function?

Community Beginner ,
Dec 01, 2016 Dec 01, 2016

Copy link to clipboard

Copied

example:  #target  #include

TOPICS
Actions and scripting

Views

541

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Dec 01, 2016 Dec 01, 2016

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

Capture.jpg

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 01, 2016 Dec 01, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 01, 2016 Dec 01, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 01, 2016 Dec 01, 2016

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines