开始使用 Illustrator 脚本并尝试编写允许我通过输入更改变量并影响保存设置的脚本。我要更改的保存选项如下:
-- Save and overwrite
save theCurrentFile in file WorkPath as Illustrator ¬
with options {class:Illustrator save options ¬
, compatibility:Illustrator 14 ¬
, embed linked files:true ¬
, font subset threshold:0.0}
我希望能够将兼容性更改为变量,但无论我将变量设置为什么,我都无法理解它。我追求的是这样的:
--Variable
set CompatibilityType to "Illustrator 14"
-- Save and overwrite
save theCurrentFile in file WorkPath as Illustrator ¬
with options {class:Illustrator save options ¬
, compatibility:CompatibilityType ¬
, embed linked files:true ¬
, font subset threshold:0.0}
我想念什么,这不想工作。我在属性列表中做了类似的事情。