Code: Select all
var myFile = new File("F:\My Documents\project_AE6.aep");
if (myFile.exists){
app.open(myFile);
}
Why?After Effects error: Unable to call “open†because of parameter 1. Path is not valid. Path: f:\My Documents\Scripts_&_Macros\AE_Scripts\AE_WIP\My Documentsproject_AE6.aep
It would appear that this issue is linked to AE preferences. Is that correct? If so, do I need to change the preferences file every time I attempt to set a file's path?
What is the most common/efficient manner (assuming those two aspects concantenate with respect to this matter) to represent folder/file paths in scripts? Should I read a text file containing the path?
Lastly, why is it that in Windows XP, AE6.5 and 7.0, do paths need to be written with "\\" slashes in order to be recognized?
Your assistance would be most appreciated (...learning how to fish).