【问题标题】:Nested path in #include statement in adobe script is not workingadobe脚本中#include语句中的嵌套路径不起作用
【发布时间】:2019-06-30 00:14:28
【问题描述】:

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

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

不工作。而

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

正在工作。

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

【问题讨论】:

  • 你的文件夹结构如何?
  • 我的文件夹结构是这样的“folder1/folder2/photoutils.jsx”

标签: scripting adobe adobe-illustrator extendscript


【解决方案1】:

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

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

index.jsx 的内容

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

include.jsx 的内容

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

由 ESTK 和 Illustrator 测试。

【讨论】:

  • 我弄乱了当前文件夹中文件夹 2 的位置。感谢您的回复。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-11-30
  • 2018-07-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多