runegan / jsxbin

Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit
MIT License
87 stars 21 forks source link

#include with relative paths #1

Closed runegan closed 7 years ago

runegan commented 7 years ago

Right now it only works when absolute paths are used in the #include statement.

The way to fix it is to place that script that is being run by ESTK in the same location as the script it is compiling.

I see two ways to do this:

  1. Create one script file for each of the files passed into jsxbin, and place the ESTK script in the same location as that passed file. ESTK has to close and reopen for each of the files, which may slow things down.
  2. Create a list of directories where the passed files are located and a list of which files are in those folders. Create a script for each of the directories and place them there. This is the most optimal, i believe.

Any help/pull request on this is welcome!