Javascript adobe illustrator脚本的完美参考在哪里?
我正在用Javascript开发Illustrator脚本(真正用的是TypeScript)。Javascript adobe illustrator脚本的完美参考在哪里?,javascript,reference,adobe-illustrator,Javascript,Reference,Adobe Illustrator,我正在用Javascript开发Illustrator脚本(真正用的是TypeScript)。 我已经知道了。 但是没有关于这些方法的文件 // app is an instance of Application class app.loadAction(f: File) app.doScript(s: string, s: string) app.executeMenuCommand(s: string) ... 包含这些方法的引用在哪里?loadAction 将动作加载到动作调色板中 --
我已经知道了。
但是没有关于这些方法的文件
// app is an instance of Application class
app.loadAction(f: File)
app.doScript(s: string, s: string)
app.executeMenuCommand(s: string)
...
包含这些方法的引用在哪里?loadAction 将动作加载到动作调色板中
-------------------------------------------------------------------------------------------
| Parameter | Type | Description |
|------------------+----------+-----------------------------------------------------------|
| actionFilePath | File | The path on the system of the action file to be loaded. |
-------------------------------------------------------------------------------------------
doScript 从“动作”选项板播放动作
------------------------------------------------------------------------------------------------
| Parameter | Type | Description |
|---------------+----------+-------------------------------------------------------------------|
| action | string | The name of the action to play* |
|---------------+----------+-------------------------------------------------------------------|
| from | string | The name of the action set containing the action being played** |
|---------------+----------+-------------------------------------------------------------------|
| dialogs | bool | Are dialog boxes associated with the action to be presented? |
------------------------------------------------------------------------------------------------
*请注意,动作名称中字母的大小写很重要,必须与动作调色板中名称的大小写匹配
**请注意,动作集名称中字母的大小写很重要,必须与动作调色板中名称的大小写匹配
执行命令 使用菜单快捷方式字符串执行菜单命令
---------------------------------------------------------------
| Parameter | Type | Description |
|---------------------+------------+--------------------------|
| menuCommandString | string | Menu command shortcut. |
---------------------------------------------------------------
你寻求的答案就在这里 简言之,Adobe脚本论坛是您解决此类更具体问题的最佳参考。你可能已经从这个问题所包围的反对票中学到了艰难的道路,但他们不知道自己在做什么;他们无法真正理解你的痛苦。。不过,在Adobe脚本论坛上,我只想说“我们有一些场景要展示给你看”。试试看,或者也试试这个——它包含一个ExecuteNuCommand字符串列表,并用更好的对象语法将它们包装起来