adobe 脚本中 #include 语句中的嵌套路径不起作用

Nested path in #include statement in adobe script is not working

在为 adobe illustrator 编写插件时,我遇到了一个非常奇怪的问题,即 #include 语句中的嵌套路径不起作用。

#include "../folder1/folder2/photoutils.jsx"

无效。而

#include "../folder1/photoutils.jsx" 

正在工作。

我正在努力寻找这种行为的答案。

我无法确认你的问题。使用以下文件夹结构,包含工作正常。

.
├── currentfolder
│   └── index.jsx
└── folder1
    └── folder2
        └── include.jsx

index.jsx

的内容
#include "../folder1/folder2/include.jsx"
say();

include.jsx

的内容
function say() {
  $.writeln('Hello World');
}

通过 ESTK 和 Illustrator 测试。