Skip to main content
bluebeezle
Inspiring
September 18, 2018
Question

Including libraries

  • September 18, 2018
  • 1 reply
  • 698 views

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?

This topic has been closed for replies.

1 reply

Participating Frequently
September 19, 2018

Bonjour

You have to use // @ include

See HERE

bluebeezle
Inspiring
September 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

Participating Frequently
September 20, 2018

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