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

Including libraries

Participant ,
Sep 18, 2018 Sep 18, 2018

I'm running scripts from a panel sitting in C:\Users\USER\AppData\Roaming\Adobe\CEP\extensions\. I've written enough of them where I need to start building external libraries. The problem is, when I do, the external libraries throw errors, because they no longer recognize Photoshop reserved words (in this case, LayerSet). How do I fix this? Is there a way to include photoshop libraries into those external .jsx files?

TOPICS
Actions and scripting
681
Translate
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
Contributor ,
Sep 19, 2018 Sep 19, 2018

Bonjour

You have to use // @ include

See HERE

Translate
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
Participant ,
Sep 19, 2018 Sep 19, 2018

Sorry, I've never heard of xtools or stdlib before. Where can I get these libraries and what directory do I need to drop them in? I found a copy of the library online (https://sourceforge.net/projects/ps-scripts/ ), but when I try to run the includes in the link you gave me, I get

Exception:ReferenceError: xTID is not a function

When I try to include stdlib, I don't get the errors mentioned above, but it still won't recognize LayerSet

Translate
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
Contributor ,
Sep 19, 2018 Sep 19, 2018
LATEST

Bonjour

After reflection it seems to me that you have to use Adobe Extension Manager to manage the extensions!

R :  I tested // @ include with my own scripts - use a function of another script: it works well !!!

Translate
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