Skip to main content
Corvinus Corax
Inspiring
September 30, 2020
Question

Encapsulating File/Folder Structures in single File (ExtendScript)

  • September 30, 2020
  • 1 reply
  • 288 views

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.

 

This topic has been closed for replies.

1 reply

Mylenium
Legend
September 30, 2020

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