Splitting up cep extension to multiple jsx
So I'm currently working on adding support for both Photoshop and Illustrator and in doing so my codebase started to get a bit messy. So I started refactoring it down to multiple files to make it cleaner and maintainable.
So I've learned that I need to use $.evalFile('path/to/.jsx/').
So far so good. And this seems to work as exptected in Photoshop.
However I can't seem to access app.activeDocument in Illustrator in the separate .jsx file.
Does anyone have any good advice for setting up a good stucture with multiple jsx files that works across adobe applications? Any good source for reading about this?
Would love to learn more about how this works and what the "best practices" are for bigger code bases.
Thanks,
Mike
