0
Targeting a different drive using extendscript
New Here
,
/t5/after-effects-discussions/targeting-a-different-drive-using-extendscript/td-p/13476103
Jan 09, 2023
Jan 09, 2023
Copy link to clipboard
Copied
I'm trying to import a file into After Effects using the following command:
AfterFX.exe -s "app.project.importFile(new ImportOptions().file = new File([FILE PATH]))"
This file, however, is located on an external SSD. When targeting this file, After Effects adds "C:/" to the front of the path name, so it turns out like "C:/D:/file.mp4". I can't figure out how to fix this, does anyone know?
TOPICS
Import and export
,
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/after-effects-discussions/targeting-a-different-drive-using-extendscript/m-p/13476123#M220786
Jan 09, 2023
Jan 09, 2023
Copy link to clipboard
Copied
The specific issue you are seeing is a genuine bug, so try to convert the path to an URI using encode/ decodeURI functions.
Mylenium
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

