theiviaxx / PSLib

Photoshop CommonJS modules
48 stars 5 forks source link

How to install this library in Photoshop CS6 on Windows 10? #3

Open glaukon-ariston opened 4 years ago

glaukon-ariston commented 4 years ago

Downloaded the PSLib-master.zip, unzipped it and now what? Where to put it so I can use it in my scripts? The Photoshop CS6 is installed in C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit) and I am running Windows 10. Do I have to copy the PSLib folder to somewhere under the Photoshop installation folder (e.g. Scripting/)? Or can I use it from anywhere?

theiviaxx commented 4 years ago

This is mainly used to help pull things together with require and the es5/6 polyfills so you use this in your own code. It doesn't matter where it is located, as long as the scripts you write can access them. For example, if you extracted the PSLib.zip to C:\tmp\PSLib you could have your script in C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts that has a #include c:/tmp/PSLib/require.jsx file.

That would pull in this library and give you the ability to "require" other modules you write. Hope that makes sense