How can I find the Scripts directory from a script?
Hello all! After playing with Photoshop scripting, I'm now playing with AE too, and in my first try I've stuck in finding the scripts path from the script itself.
In Photoshop, there was this piece of code that somebody in the Photoshop Scripting forum kindly shared:
var scriptsPath = new Folder (app.path + "/" + localize ("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
But this line doesn't work in After Effects because app.path variable doesn't exist (very funny, I thought Photoshop and After Effects shared the same basic app variables) and the path given to the "localize" function is wrong in AE (I think "$$$" means nothing to it).
Can somebody give me a clue about how to solve this? Thanks a lot in advance 🙂
