Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

importFile(); Error: Path not valid

Explorer ,
Mar 20, 2014 Mar 20, 2014

I'm trying to import an AEP into an active AEP. When I run the script from Extend script it works fine but when I try running it from within the AEP I get an error: Path not valid.

     var myFile = "myProject.aep";

     app.project.importFile(new ImportOptions(File("GFXM1/Folder/" + myFile)));

GFXM1 is a server (not sure it matters). I've tried adding "Volumes/" infront of GFXM1 but it still didn't work.

TOPICS
Scripting
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Mar 20, 2014 Mar 20, 2014

You may need to add a '/' slash in front of Volumes as that directory is in the root of the OSX file system.

Translate
Enthusiast ,
Mar 20, 2014 Mar 20, 2014

You may need to add a '/' slash in front of Volumes as that directory is in the root of the OSX file system.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 21, 2014 Mar 21, 2014
LATEST

It's always something simple like that in scripting isn't it!? Thanks Arie!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines