Skip to main content
Participant
January 9, 2023
Question

Targeting a different drive using extendscript

  • January 9, 2023
  • 1 reply
  • 194 views

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?

This topic has been closed for replies.

1 reply

Mylenium
Legend
January 9, 2023

The specific issue you are seeing is a genuine bug, so try to convert the path to an URI using encode/ decodeURI functions.

 

Mylenium