Encapsulating File/Folder Structures in single File (ExtendScript)

Participant ,
Sep 30, 2020

Copy link to clipboard

Copied

Is there a way to encapsule file and/or folder structures in a single file, like an archive, and work with those via extendScript?

 

Here's an example what I am looking for. At the moment my script gets e.g. file A from folder A, file B from folder B and file C from the root (and so on).

 

Visible for the user and the script:

myscript.jsx -> Folder A -> File A

myscript.jsx -> Folder B -> File A

myscript.jsx -> File C

 

What I am looking for ist something like this:

 

Visible for the user:

myscript.jsx -> the module

 

Visible for the script:

myscript.jsx -> the module -> Folder A -> File A

myscript.jsx -> the module -> Folder B -> File A

myscript.jsx -> the module -> File C

 

So I don't have to ship a script with a lot of visible (and potentially editable) files and folders to my users but only the script and a single file, that contains everything it needs to work.

 

TOPICS
How to, Scripting, SDK

Views

78

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mylenium LATEST
Most Valuable Participant ,
Sep 30, 2020

Copy link to clipboard

Copied

I don't think so. You can't even do this in a clean fashion in plug-ins due to limitations in how AE can (not) dynamically load stuff when needed. At best I would imagine you could obfuscate it by hiding stuff behind dynamically changing panel layouts, but the script would still already be loaded fully in the background.

 

Mylenium

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more