-
Can’t read filepath as File() makes whitespace to %20
Hi,
my script reads and takes data from a .txt outside of itself. It actually works until when I placed the .txt file into the ScriptUI Folder
heres the issue atm
var filPathStr = "~/Program Files/Adobe/Adobe After Effects 2020/Support Files/Scripts/ScriptUI/txt.txt";
var dFile = File (filPathStr);//dFile = c/Program%20Files/Adobe/Adobe%20After%20Effects%202020/Support%20Files/Scripts/ScriptUI;
I have tried a number of solutions, be it using replace(/%20/g, ” “) or decodeURI(str), but it does not work as they return a string than an object.
so no matter how much I fix the string filPathStr, once I try place the string into File(), all whitespaces turn back to ‘%20′.
I am not too sure if it is wise to remove the actual folders’ whitespaces of After effects, but i cant find any other way to deal with it